s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / multu.c
blob85d36c1b621a1c8fab1c66fc18bed0f49be7785c
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rs, rt, ach, acl;
7 int result, resulth, resultl;
9 rs = 0x00FFBBAA;
10 rt = 0x4B231000;
11 resulth = 0x4b0f01;
12 resultl = 0x71f8a000;
13 __asm
14 ("multu $ac1, %2, %3\n\t"
15 "mfhi %0, $ac1\n\t"
16 "mflo %1, $ac1\n\t"
17 : "=r"(ach), "=r"(acl)
18 : "r"(rs), "r"(rt)
20 assert(ach == resulth);
21 assert(acl == resultl);
23 return 0;