s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / precrq_rs_qh_pw.c
blobac78728abf3fa4d393735c8e957f1f77f22b824d
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long dsp;
7 long long res;
9 rs = 0x1234567812345678;
10 rt = 0x8765432187654321;
12 res = 0x1234123487658765;
14 __asm
15 ("precrq_rs.qh.pw %0, %1, %2\n\t"
16 : "=r"(rd)
17 : "r"(rs), "r"(rt)
20 if (rd != res) {
21 printf("precrq_rs.qh.pw error\n");
22 return -1;
25 rs = 0x7fffC67812345678;
26 rt = 0x8765432187654321;
28 res = 0x7fff123487658765;
30 __asm
31 ("precrq_rs.qh.pw %0, %2, %3\n\t"
32 "rddsp %1\n\t"
33 : "=r"(rd), "=r"(dsp)
34 : "r"(rs), "r"(rt)
37 if (rd != res) {
38 printf("precrq_rs.qh.pw error\n");
39 return -1;
42 return 0;