s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmpgu_le_ob.c
blob8b65f18c00c4216c17a633e20c05f8e4f75ccb16
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 result = 0xFF;
11 __asm
12 ("cmpgu.le.ob %0, %1, %2\n\t"
13 : "=r"(rd)
14 : "r"(rs), "r"(rt)
17 if (rd != result) {
18 printf("cmpgu.le.ob error\n");
20 return -1;
23 rs = 0x823556789ABCDEF0;
24 rt = 0x123456789ABCDEFF;
25 result = 0x3F;
27 __asm
28 ("cmpgu.le.ob %0, %1, %2\n\t"
29 : "=r"(rd)
30 : "r"(rs), "r"(rt)
33 if (rd != result) {
34 printf("cmpgu.le.ob error\n");
36 return -1;
39 return 0;