s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmpu_le_ob.c
blob8acbd1c4ba5aeab7a79897c7260434757d71a0e7
1 #include "io.h"
3 int main(void)
5 long long rs, rt, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 dspresult = 0xFF;
11 __asm
12 ("cmpu.le.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.le.ob error\n");
22 return -1;
25 rs = 0x823656789ABCDEF0;
26 rt = 0x123456789ABCDEFF;
27 dspresult = 0x3F;
29 __asm
30 ("cmpu.le.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.le.ob error\n");
40 return -1;
43 return 0;