xref: /openbmc/qemu/tests/tcg/hexagon/test_hwloops.S (revision d2dfe0b5)
1/* Purpose: simple C Program to test hardware loops. */
2
3    .text
4    .globl _start
5
6_start:
7    {
8        loop0(.LBB0_1, #10)
9        r2 = #0
10    }
11.LBB0_1:
12    {
13        r2 = add(r2, #1)
14        nop
15    }:endloop0
16    {
17        p0 = cmp.eq(r2, #10); if (p0.new) jump:t pass
18        jump fail
19    }
20