blob: a98b69bf32563ce4484bb475c8e7399f9cb6b07d [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001//file: _insn_test_bltzt_X1.c
2//op=47
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] = { 0xfb39d803fce5e022, 0xa6f1d43f68e5d60e };
17
18int main(void) {
19 unsigned long a[4] = { 0, 0 };
20 asm __volatile__ (
21 "movei r31, 0\n"
22 "bltzt r31, %0\n"
23 "jal %1\n"
24 :: "i"(func_exit), "i"(func_call));
25 return 0;
26}