s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / maddu.c
blobe9f426a374210ac94c1483f0b41ac95daab4bb83
1 #include "io.h"
3 int main(void)
5 long long rt, rs;
6 long long achi, acli;
7 long long acho, aclo;
8 long long resulth, resultl;
10 achi = 0x05;
11 acli = 0xB4CB;
12 rs = 0x01;
13 rt = 0x01;
14 resulth = 0x05;
15 resultl = 0xB4CC;
17 __asm
18 ("mthi %2, $ac1\n\t"
19 "mtlo %3, $ac1\n\t"
20 "madd $ac1, %4, %5\n\t"
21 "mfhi %0, $ac1\n\t"
22 "mflo %1, $ac1\n\t"
23 : "=r"(acho), "=r"(aclo)
24 : "r"(achi), "r"(acli), "r"(rs), "r"(rt)
26 if ((resulth != acho) || (resultl != aclo)) {
27 printf("maddu wrong\n");
29 return -1;
32 return 0;