diff options
Diffstat (limited to 'sim/testsuite/bfin/cmpacc.s')
-rw-r--r-- | sim/testsuite/bfin/cmpacc.s | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sim/testsuite/bfin/cmpacc.s b/sim/testsuite/bfin/cmpacc.s new file mode 100644 index 0000000..ed31f62 --- /dev/null +++ b/sim/testsuite/bfin/cmpacc.s @@ -0,0 +1,50 @@ +# Blackfin testcase for the accumulator and compares +# mach: bfin + + .include "testutils.inc" + + start + +r7=0; +astat=r7; +r7.l=0x80; +A1.x=r7.l; +r0 = 0; +A1.w=r0; +r1.l = 0xffff; +r1.h =0xffff; +A0.w=r1; +r7.l=0x7f; +A0.x=r7.l; +#dbg A0; +#dbg A1; +#dbg astat; +cc = A0==A1; +#dbg astat; +r7=astat; +dbga (r7.h, 0x0); +dbga (r7.l, 0x0); +astat=r0; +#dbg astat; +r7.l=0x80; +A0.x=r7.l; +r0 = 0; +A0.w=r0; +r1.l = 0xffff; +r1.h =0xffff; +A1.w=r1; +r7.l=0x7f; +A1.x=r7.l; +cc = A0<A1; +#dbg astat; +r7=astat; +dbga (r7.h, 0x0); +dbga (r7.l, 0x1026); +astat=r0; +cc = A0<=A1; +#dbg astat; +r7=astat; +dbga (r7.h, 0x0); +dbga (r7.l, 0x1026); + +pass |