s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / absq_s_qh.c
blob9001a9e164214e521a9f719f6fe64bccaf136732
1 #include "io.h"
3 int main(void)
5 long long rd, rt, result, dspcontrol;
6 rd = 0;
7 rt = 0x7F7F7F7F7F7F7F7F;
8 result = 0x7F7F7F7F7F7F7F7F;
11 __asm
12 ("absq_s.qh %0, %1\n\t"
13 : "=r"(rd)
14 : "r"(rt)
17 if (result != rd) {
18 printf("absq_s.qh test 1 error\n");
20 return -1;
23 rd = 0;
24 rt = 0x8000FFFFFFFFFFFF;
25 result = 0x7FFF000100000001;
27 __asm
28 ("absq_s.pw %0, %1\n\t"
29 : "=r"(rd)
30 : "r"(rt)
32 if (result != rd) {
33 printf("absq_s.rw test 2 error\n");
35 return -1;
38 return 0;