master
s 19 lines 301 Bytes
Raw
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 }