qapi: Move conditional code from QAPISchemaVariants to its subtypes
[qemu/kevin.git] / tests / tcg / hexagon / test_cmp.S
blob1db87d3db52712fa939134699c45be33e2e7f3e2
1 /* Purpose: test a signed and unsigned comparison */
3     .text
4     .globl _start
6 _start:
7     {
8         jump signed
9     }
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     }
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     }