s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / dpsu_h_qbr.c
bloba1e66356310dda5400b52f0de1fdcb66404d07f3
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rs, rt;
7 int ach = 5, acl = 5;
8 int resulth, resultl;
10 rs = 0xBC0123AD;
11 rt = 0x01643721;
12 resulth = 0x04;
13 resultl = 0xFFFFE233;
14 __asm
15 ("mthi %0, $ac1\n\t"
16 "mtlo %1, $ac1\n\t"
17 "dpsu.h.qbr $ac1, %2, %3\n\t"
18 "mfhi %0, $ac1\n\t"
19 "mflo %1, $ac1\n\t"
20 : "+r"(ach), "+r"(acl)
21 : "r"(rs), "r"(rt)
23 assert(ach == resulth);
24 assert(acl == resultl);
26 return 0;