repo.or.cz
/
qemu
/
kevin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qapi: Move conditional code from QAPISchemaVariants to its subtypes
[qemu/kevin.git]
/
tests
/
tcg
/
hexagon
/
test_cmp.S
blob
1db87d3db52712fa939134699c45be33e2e7f3e2
1
/* Purpose: test a signed and unsigned comparison */
2
3
.text
4
.globl _start
5
6
_start:
7
{
8
jump signed
9
}
10
11
.globl signed
12
signed:
13
{
14
r0 = #-2
15
r1 = #0
16
}
17
{
18
p0 = cmp.lt(r0, r1); if (p0.new) jump:t unsigned
19
jump fail
20
}
21
22
.globl unsigned
23
unsigned:
24
{
25
r0 = #-2
26
r1 = #0
27
}
28
{
29
p0 = cmp.gtu(r0, r1); if (p0.new) jump:t pass
30
jump fail
31
}