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