comparison testcases.txt @ 227:42123feab62d

Added test cases for divs/divu and added divide by zero handler to test generator
author Mike Pavone <pavone@retrodev.com>
date Sun, 21 Apr 2013 16:44:10 -0700
parents f7ff02eeec2f
children 8db584faac4b
comparison
equal deleted inserted replaced
226:28a6697e847b 227:42123feab62d
36 #sbcd b -(a) -(a) 36 #sbcd b -(a) -(a)
37 #muls w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d 37 #muls w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d
38 #mulu w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d 38 #mulu w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d
39 #move bwl d;a;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l 39 #move bwl d;a;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l
40 #movea wl d;a;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) a 40 #movea wl d;a;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) a
41 moveq l #(-128-127) d 41 #moveq l #(-128-127) d
42 roxl bwl d;#(1-8) d 42 #roxl bwl d;#(1-8) d
43 roxr bwl d;#(1-8) d 43 #roxr bwl d;#(1-8) d
44 divs w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d
45 divu w d;(a);(a)+;-(a);(n,a);(n,a,x);(n).w;(n).l;#n;(n,pc);(n,pc,x) d
44 46