s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / subq_qh.c
blob76d5f0a10a22438a5c75a5fd07510e97a7e1fc3d
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
6 rt = 0x123456789ABCDEF0;
7 rs = 0x123456789ABCDEF0;
8 result = 0x0;
9 dspresult = 0x0;
11 __asm
12 ("subq.qh %0, %2, %3\n\t"
13 "rddsp %1\n\t"
14 : "=r"(rd), "=r"(dspreg)
15 : "r"(rs), "r"(rt)
17 dspreg = (dspreg >> 20) & 0x1;
18 if ((rd != result) || (dspreg != dspresult)) {
19 printf("subq.qh error\n\t");
21 return -1;
24 return 0;