s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dpsu_h_obr.c
blobaa0d47a06514589390a769b67eac90c18a945580
1 #include "io.h"
3 int main(void)
5 long long rs, rt;
6 long long ach = 5, acl = 5;
7 long long resulth, resultl;
9 rs = 0x7878878888886666;
10 rt = 0x9865454399998888;
12 resulth = 0x04;
13 resultl = 0xFFFFFFFFFFFeF115;
15 __asm
16 ("mthi %0, $ac1\n\t"
17 "mtlo %1, $ac1\n\t"
18 "dpsu.h.obr $ac1, %2, %3\n\t"
19 "mfhi %0, $ac1\n\t"
20 "mflo %1, $ac1\n\t"
21 : "+r"(ach), "+r"(acl)
22 : "r"(rs), "r"(rt)
25 if ((ach != resulth) || (acl != resultl)) {
26 printf("dpsu.h.qbr wrong\n");
28 return -1;
31 return 0;