s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmp_lt_ph.c
blob1d91228c3abd0fbb82f211146aa1582eb63b25f8
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long result;
8 rs = 0x11777066;
9 rt = 0x55AA33FF;
10 result = 0x02;
11 __asm
12 ("cmp.lt.ph %1, %2\n\t"
13 "rddsp %0\n\t"
14 : "=r"(rd)
15 : "r"(rs), "r"(rt)
18 rd = (rd >> 24) & 0x03;
19 if (rd != result) {
20 printf("cmp.lt.ph wrong\n");
22 return -1;
24 rs = 0x11777066;
25 rt = 0x11777066;
26 result = 0x00;
27 __asm
28 ("cmp.lt.ph %1, %2\n\t"
29 "rddsp %0\n\t"
30 : "=r"(rd)
31 : "r"(rs), "r"(rt)
33 rd = (rd >> 24) & 0x03;
34 if (rd != result) {
35 printf("cmp.lt.ph2 wrong\n");
37 return -1;
40 return 0;