1# sh testcase for cmp/eq $rm, $rn -*- Asm -*- 2# mach: all 3# as: -isa=shcompact 4# ld: -m shelf32 5 6 .include "compact/testutils.inc" 7 8 start 9 10zeroes: 11 mov #0, r1 12 mov #0, r2 13 cmp/eq r1, r2 14 bf wrong 15 16zero1: 17 mov #0, r1 18 mov #1, r2 19 cmp/eq r1, r2 20 bt wrong 21 22zero2: 23 mov #0, r2 24 mov #1, r1 25 cmp/eq r2, r1 26 bt wrong 27 28equal: 29 mov #192, r1 30 mov #192, r2 31 cmp/eq r1, r2 32 bf wrong 33 34noteq: 35 mov #192, r1 36 mov #193, r2 37 cmp/eq r1, r2 38 bt wrong 39 40large: 41 mov #1, r1 42 rotr r1 43 mov #1, r2 44 rotr r2 45 cmp/eq r1, r2 46 bf wrong 47 48okay: 49 pass 50 51wrong: 52 fail 53