s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / precrqu_s_qb_ph.c
blobcb1fee4508ff65d12cca276e19022fadc2703e35
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long dsp;
7 long long result;
9 rs = 0x12345678;
10 rt = 0x87657fff;
11 result = 0x24AC00FF;
13 __asm
14 ("precrqu_s.qb.ph %0, %2, %3\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rs), "r"(rt)
19 if ((result != rd) || (((dsp >> 22) & 0x01) != 0x01)) {
20 printf("precrqu_s.qb.ph wrong\n");
22 return -1;
25 return 0;