Elliott Hughes | a0664b9 | 2017-04-18 17:46:52 -0700 | [diff] [blame^] | 1 | //file: _insn_test_bltzt_X1.c |
| 2 | //op=47 |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | void func_exit(void) { |
| 7 | printf("%s\n", __func__); |
| 8 | exit(0); |
| 9 | } |
| 10 | |
| 11 | void func_call(void) { |
| 12 | printf("%s\n", __func__); |
| 13 | exit(0); |
| 14 | } |
| 15 | |
| 16 | unsigned long mem[2] = { 0xfb39d803fce5e022, 0xa6f1d43f68e5d60e }; |
| 17 | |
| 18 | int 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 | } |