blob: ecba26fe7104ad1a1ab7d6498459b241c1bcefe4 [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001//file: _insn_test_jr_X1.c
2//op=117
3#include <stdio.h>
4#include <stdlib.h>
5
6void func_exit(void) {
7 printf("%s\n", __func__);
8 exit(0);
9}
10
11void func_call(void) {
12 printf("%s\n", __func__);
13 exit(0);
14}
15
16unsigned long mem[2] = { 0x5468060e74455729, 0x796b977f2174befa };
17
18int main(void) {
19 unsigned long a[4] = { 0, 0 };
20 asm __volatile__ (
21 "jr %0\n"
22 :: "r"(func_exit));
23 return 0;
24}