s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dpsu_h_obl.c
blobc0a8f4d7aaf57f1c1de1adc471fe487a3cb9db33
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 = 0x88886666BC0123AD;
10 rt = 0x9999888801643721;
12 resulth = 0x04;
13 resultl = 0xFFFFFFFFFFFEF115;
15 __asm
16 ("mthi %0, $ac1\n\t"
17 "mtlo %1, $ac1\n\t"
18 "dpsu.h.obl $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.obl wrong\n");
28 return -1;
31 return 0;