s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dpau_h_qbl.c
blobfcfd764310412e6bb10aa18e396e1d394fa6935f
1 #include "io.h"
3 int main(void)
5 long long rs, rt;
6 long long ach = 5, acl = 3;
7 long long resulth, resultl;
9 rs = 0x800000FF;
10 rt = 0x80000002;
11 resulth = 0x05;
12 resultl = 0x4003;
13 __asm
14 ("mthi %0, $ac1\n\t"
15 "mtlo %1, $ac1\n\t"
16 "dpau.h.qbl $ac1, %2, %3\n\t"
17 "mfhi %0, $ac1\n\t"
18 "mflo %1, $ac1\n\t"
19 : "+r"(ach), "+r"(acl)
20 : "r"(rs), "r"(rt)
22 if ((ach != resulth) || (acl != resultl)) {
23 printf("dpau.h.qbl wrong\n");
25 return -1;
28 return 0;