s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / precrq_ph_w.c
blobf0946abdcb91187f93ed030c0e2e047772e07b0b
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long result;
8 rs = 0x12345678;
9 rt = 0x87654321;
10 result = 0x12348765;
12 __asm
13 ("precrq.ph.w %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rs), "r"(rt)
17 if (result != rd) {
18 printf("precrq.ph.w wrong\n");
20 return -1;
23 return 0;