s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmpu_lt_ob.c
blob34e312d818367d66c34f07c1d59b9f3fac81d9b9
1 #include "io.h"
3 int main(void)
5 long long rs, rt, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 dspresult = 0x01;
11 __asm
12 ("cmpu.lt.ob %1, %2\n\t"
13 "rddsp %0"
14 : "=r"(dspreg)
15 : "r"(rs), "r"(rt)
18 dspreg = dspreg >> 24;
19 if (dspreg != dspresult) {
20 printf("cmpu.lt.ob error\n");
22 return -1;
25 rs = 0x823156789ABCDEF0;
26 rt = 0x123456789ABCDEFF;
27 dspresult = 0x41;
29 __asm
30 ("cmpu.lt.ob %1, %2\n\t"
31 "rddsp %0"
32 : "=r"(dspreg)
33 : "r"(rs), "r"(rt)
36 dspreg = dspreg >> 24;
37 if (dspreg != dspresult) {
38 printf("cmpu.lt.ob error\n");
40 return -1;
43 return 0;