Support Intel SM4 AVX10.2 extension
[binutils-gdb.git] / sim / testsuite / mcore / sexth.s
blob97279c49ed43e783bc51bb247e70d33e0c0cd4b4
1 # check that sext.b/sext.h work correctly
2 # mach: mcore
4 .include "testutils.inc"
6 start
7 # Construct -32760 using bgeni+addi+sext
8 bgeni r2, 15
9 addi r2,8
10 sexth r2
12 # Construct -32760 using bmask+subi+not
13 bmaski r7,15
14 subi r7,8 // 32759 0x7ff7
15 not r7
18 # Compare them, they should be equal
19 cmpne r2,r7
20 jbt .L1
21 pass
22 .L1:
23 fail