s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / multu.c
blob21a8a7c77d72448325f35f5a0f3858cb7506d8ea
1 #include "io.h"
3 int main(void)
5 long long rs, rt, ach, acl;
6 long long result, resulth, resultl;
8 rs = 0x00FFBBAA;
9 rt = 0x4B231000;
10 resulth = 0x4b0f01;
11 resultl = 0x71f8a000;
12 __asm
13 ("multu $ac1, %2, %3\n\t"
14 "mfhi %0, $ac1\n\t"
15 "mflo %1, $ac1\n\t"
16 : "=r"(ach), "=r"(acl)
17 : "r"(rs), "r"(rt)
19 if ((ach != resulth) || (acl != resultl)) {
20 printf("multu wrong\n");
22 return -1;
25 return 0;