xref: /openbmc/qemu/tests/tcg/hexagon/test_jmp.S (revision 4f9a4cd37eb2f0c4e6be83640fcc5c31d4bf99e3)
1*585a86b1SNiccolò Izzo/* Purpose: test example, verify the soundness of the jump operation */
2*585a86b1SNiccolò Izzo
3*585a86b1SNiccolò Izzo#define SYS_exit_group 94
4*585a86b1SNiccolò Izzo
5*585a86b1SNiccolò Izzo    .text
6*585a86b1SNiccolò Izzo    .globl _start
7*585a86b1SNiccolò Izzo
8*585a86b1SNiccolò Izzo_start:
9*585a86b1SNiccolò Izzo    {
10*585a86b1SNiccolò Izzo        jump pass
11*585a86b1SNiccolò Izzo    }
12*585a86b1SNiccolò Izzo    /*
13*585a86b1SNiccolò Izzo     * Inlined fail label in crt.S so we can fail without
14*585a86b1SNiccolò Izzo     * having a functioning jump
15*585a86b1SNiccolò Izzo     */
16*585a86b1SNiccolò Izzo    {
17*585a86b1SNiccolò Izzo        r0 = #1
18*585a86b1SNiccolò Izzo        r6 = #SYS_exit_group
19*585a86b1SNiccolò Izzo    }
20*585a86b1SNiccolò Izzo    {
21*585a86b1SNiccolò Izzo        trap0(#1)
22*585a86b1SNiccolò Izzo    }
23