s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / mult.c
blob15e6fde92c0e2048a881da8c2d5cd1a744c383f0
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 ("mult $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;