1# sh testcase for cmp/gt $rm, $rn -*- Asm -*- 2# mach: all 3# as: -isa=shcompact 4# ld: -m shelf32 5 6 .include "compact/testutils.inc" 7 8 start 9 10zero: 11 mov #0, r0 12 mov #0, r1 13 cmp/gt r0, r1 14 bt wrong 15 16onezero: 17 mov #1, r0 18 mov #0, r1 19 cmp/gt r0, r1 20 bt wrong 21 22zeroone: 23 mov #0, r0 24 mov #1, r1 25 cmp/gt r0, r1 26 bf wrong 27 28equal: 29 mov #192, r0 30 mov #192, r1 31 cmp/gt r0, r1 32 bt wrong 33 34eqlarge: 35 mov #1, r0 36 rotr r0 37 add #85, r0 38 mov #1, r1 39 rotr r1 40 add #85, r1 41 cmp/gt r0, r1 42 bt wrong 43 44large2: 45 mov #1, r0 46 rotr r0 47 add #85, r0 48 mov #1, r1 49 rotr r1 50 add #84, r1 51 cmp/gt r0, r1 52 bt wrong 53 54large3: 55 mov #1, r0 56 rotr r0 57 add #84, r0 58 mov #1, r1 59 rotr r1 60 add #85, r1 61 cmp/gt r0, r1 62 bf wrong 63 64okay: 65 pass 66 67wrong: 68 fail 69 70