s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmp_eq_qh.c
blob49ea271003e42b8d13b23716157519f6928b0c36
1 #include "io.h"
3 int main(void)
5 long long rs, rt, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 dspresult = 0x0E;
11 __asm
12 ("cmp.eq.qh %1, %2\n\t"
13 "rddsp %0\n\t"
14 : "=r"(dspreg)
15 : "r"(rs), "r"(rt)
18 dspreg = ((dspreg >> 24) & 0x0F);
20 if (dspreg != dspresult) {
21 printf("cmp.eq.qh error\n");
23 return -1;
26 rs = 0x12355a789A4CD3F0;
27 rt = 0x123456789ABCDEFF;
28 dspresult = 0x00;
30 __asm
31 ("cmp.eq.qh %1, %2\n\t"
32 "rddsp %0\n\t"
33 : "=r"(dspreg)
34 : "r"(rs), "r"(rt)
37 dspreg = ((dspreg >> 24) & 0x0F);
39 if (dspreg != dspresult) {
40 printf("cmp.eq.qh error\n");
42 return -1;
45 return 0;