s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / addu_ob.c
blob17f9c668c04e2eb29d3391d3884e1f6d7f6828e8
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x3456123498DEF390;
9 result = 0x468A68AC329AD180;
10 dspresult = 0x01;
12 __asm
13 ("addu.ob %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dspreg)
16 : "r"(rs), "r"(rt)
19 dspreg = ((dspreg >> 20) & 0x01);
21 if ((rd != result) || (dspreg != dspresult)) {
22 printf("addu.ob error\n\t");
24 return -1;
27 return 0;