qapi: Move conditional code from QAPISchemaVariants to its subtypes
[qemu/kevin.git] / tests / tcg / hexagon / test_fibonacci.S
blob4ef2c3896e4f01c9e623dae144c04e6721743dcc
1 /* Purpose: computes the Fibonacci series up to a constant number. */
3     .text
4     .globl _start
6 _start:
7     {
8         r2 = #100
9     }
10     {
11         p0 = cmp.gt(r2, #0); if (!p0.new) jump:nt .LBB0_3
12     }
13     {
14         r3 = #0
15         r4 = #1
16     }
17 .LBB0_2:
18     {
19         r5 = r4
20     }
21     {
22         p0 = cmp.gt(r2, r5); if (p0.new) jump:nt .LBB0_2
23         r4 = add(r3, r4)
24         r3 = r5
25     }
26 .LBB0_3:
27     {
28         p0 = cmp.eq(r3, #144); if (p0.new) jump:t pass
29         jump fail
30     }