gdb/testsuite: Reduce gdb.threads/threadcrash.exp reliance on libc symbols
[binutils-gdb.git] / sim / testsuite / cr16 / cmpw_i.cgs
blob31f701c517150b2a1d3628b77fb4259458a45e17
1 # cr16 testcase for cmpw_i $imm16, reg
2 # mach(): cr16 
4         .include "testutils.inc"
6         start
8         .global cmpw_i
9 cmpw_i:
10         mvi_h_condbit 0
11         movw $0x1234, r4
12         cmpw $0x1234, r4
13         beq ok
14 not_ok:
15         fail
16 ok:
17         mvi_h_condbit 1
18         cmpw $0x2222, r4
19         beq not_ok
21         pass