qemu-error: add {error, warn}_report_once_cond
[qemu.git] / tests / tcg / mips / mips64-dsp / mfhi.c
blobee915f796e642736d517663f93fc94ef54749187
1 #include "io.h"
3 int main(void)
5 long long achi, acho;
6 long long result;
8 achi = 0x004433;
9 result = 0x004433;
11 __asm
12 ("mthi %1, $ac1\n\t"
13 "mfhi %0, $ac1\n\t"
14 : "=r"(acho)
15 : "r"(achi)
17 if (result != acho) {
18 printf("mfhi wrong\n");
20 return -1;
23 return 0;