1# sh testcase for cmp/pl $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 cmp/pl r0 13 bt wrong 14 15plus: 16 mov #10, r0 17 cmp/pl r0 18 bf wrong 19 20minus: 21 mov #10, r0 22 neg r0, r0 23 cmp/pl r0 24 bt wrong 25 26large: 27 mov #10, r0 28 shll8 r0 29 add #123, r0 30 cmp/pl r0 31 bf wrong 32 33okay: 34 pass 35 36wrong: 37 fail 38