s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / msubu.c
blob55f8ae046f6948e17caa9dd82924af7854266671
1 #include "io.h"
3 int main(void)
5 long long achi, acli, rs, rt;
6 long long acho, aclo;
7 long long resulth, resultl;
9 rs = 0x00BBAACC;
10 rt = 0x0B1C3D2F;
11 achi = 0x00004433;
12 acli = 0xFFCC0011;
13 resulth = 0xFFFFFFFFFFF81F29;
14 resultl = 0xFFFFFFFFB355089D;
16 __asm
17 ("mthi %2, $ac1\n\t"
18 "mtlo %3, $ac1\n\t"
19 "msubu $ac1, %4, %5\n\t"
20 "mfhi %0, $ac1\n\t"
21 "mflo %1, $ac1\n\t"
22 : "=r"(acho), "=r"(aclo)
23 : "r"(achi), "r"(acli), "r"(rs), "r"(rt)
25 if ((acho != resulth) || (aclo != resultl)) {
26 printf("msubu wrong\n");
28 return -1;
31 return 0;