s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / absq_s_w.c
blob414c8bd3f6058278905f4156426c9d8c1a9d7074
1 #include "io.h"
3 int main(void)
5 long long rd, rt;
6 long long result;
8 rt = 0x80000000;
9 result = 0x7FFFFFFF;
10 __asm
11 ("absq_s.w %0, %1\n\t"
12 : "=r"(rd)
13 : "r"(rt)
15 if (rd != result) {
16 printf("absq_s_w.ph wrong\n");
18 return -1;
21 rt = 0x80030000;
22 result = 0x7FFD0000;
23 __asm
24 ("absq_s.w %0, %1\n\t"
25 : "=r"(rd)
26 : "r"(rt)
28 if (rd != result) {
29 printf("absq_s_w.ph wrong\n");
31 return -1;
34 rt = 0x31036080;
35 result = 0x31036080;
36 __asm
37 ("absq_s.w %0, %1\n\t"
38 : "=r"(rd)
39 : "r"(rt)
41 if (rd != result) {
42 printf("absq_s_w.ph wrong\n");
44 return -1;
47 return 0;