repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Support Intel SM4 AVX10.2 extension
[binutils-gdb.git]
/
sim
/
testsuite
/
mcore
/
sexth.s
blob
97279c49ed43e783bc51bb247e70d33e0c0cd4b4
1
# check that sext.b/sext.h work correctly
2
# mach: mcore
3
4
.include
"testutils.inc"
5
6
start
7
# Construct -32760 using bgeni+addi+sext
8
bgeni
r2
,
15
9
addi
r2
,
8
10
sexth
r2
11
12
# Construct -32760 using bmask+subi+not
13
bmaski
r7
,
15
14
subi
r7
,
8
//
32759 0x7ff7
15
not
r7
16
17
18
# Compare them, they should be equal
19
cmpne
r2
,
r7
20
jbt
.L1
21
pass
22
.L1:
23
fail
24
25
26
27