s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / addu_s_qb.c
blobcb84293ade6c344684029a1f78d5e2d403d225dd
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long dsp;
7 long long result;
9 rs = 0x10FF01FF;
10 rt = 0x10010001;
11 result = 0x20FF01FF;
12 __asm
13 ("addu_s.qb %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dsp)
16 : "r"(rs), "r"(rt)
18 if ((rd != result) || (((dsp >> 20) & 0x1) != 1)) {
19 printf("1 addu_s.qb error 1\n");
21 return -1;
24 rs = 0xFFFFFFFFFFFF1111;
25 rt = 0x00020001;
26 result = 0xFFFFFFFFFFFF1112;
27 __asm
28 ("addu_s.qb %0, %2, %3\n\t"
29 "rddsp %1\n\t"
30 : "=r"(rd), "=r"(dsp)
31 : "r"(rs), "r"(rt)
33 if ((rd != result) || (((dsp >> 20) & 0x1) != 1)) {
34 printf("2 addu_s.qb error 2\n");
36 return -1;
39 return 0;