aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/hexagon/test_jmp.S
blob: 5be25c52b252551d72a12552d134c0b266b0a511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Purpose: test example, verify the soundness of the jump operation */

#define SYS_exit_group 94

    .text
    .globl _start

_start:
    {
        jump pass
    }
    /*
     * Inlined fail label in crt.S so we can fail without
     * having a functioning jump
     */
    {
        r0 = #1
        r6 = #SYS_exit_group
    }
    {
        trap0(#1)
    }