s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dpaq_s_w_qh.c
blob844a3474292aff2fcad8a185380e99ca02279dbb
1 #include"io.h"
2 int main(void)
4 long long rt, rs;
5 long long achi, acli;
6 long long acho, aclo;
7 long long resh, resl;
9 achi = 0x1;
10 acli = 0x1;
11 rs = 0x0001000100010001;
12 rt = 0x0002000200020002;
13 resh = 0x1;
14 resl = 0x11;
16 __asm
17 ("mthi %2, $ac1\t\n"
18 "mtlo %3, $ac1\t\n"
19 "dpaq_s.w.qh $ac1, %4, %5\t\n"
20 "mfhi %0, $ac1\t\n"
21 "mflo %1, $ac1\t\n"
22 : "=r"(acho), "=r"(aclo)
23 : "r"(achi), "r"(acli), "r"(rs), "r"(rt)
25 if ((acho != resh) || (aclo != resl)) {
26 printf("1 dpaq_s.w.qh error\n");
28 return -1;
31 achi = 0xffffffff;
32 acli = 0xaaaaaaaa;
34 rs = 0x1111222233334444;
35 rt = 0xffffeeeeddddcccc;
37 resh = 0x00;
38 resl = 0xffffffffd27ad82e;
40 __asm
41 ("mthi %2, $ac1\t\n"
42 "mtlo %3, $ac1\t\n"
43 "dpaq_s.w.qh $ac1, %4, %5\t\n"
44 "mfhi %0, $ac1\t\n"
45 "mflo %1, $ac1\t\n"
46 : "=r"(acho), "=r"(aclo)
47 : "r"(achi), "r"(acli), "r"(rs), "r"(rt)
50 if ((acho != resh) || (aclo != resl)) {
51 printf("2 dpaq_s.w.qh error\n");
53 return -1;
56 return 0;