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