arm: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline
[binutils-gdb.git] / sim / testsuite / mcore / sextb.s
blob5500f7abe67cf7f9e789b83cbe0583cbe0bac477
1 # check that sext.b/sext.h work correctly
2 # mach: mcore
4 .include "testutils.inc"
6 start
7 # Construct -120 using bgeni+addi+sext
8 bgeni r2, 7
9 addi r2,8
10 sextb r2
12 # Construct -120 using movi+not
13 movi r7,119
14 not r7
16 # Compare them, they should be equal
17 cmpne r2,r7
18 jbt .L1
19 pass
20 .L1:
21 fail