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