s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / subu_s_ob.c
blob5df64e5ff01a25b09a527bed155a458eea07f426
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dspreg, result, dspresult;
6 rs = 0x12345678ABCDEF0;
7 rt = 0x12345678ABCDEF1;
8 result = 0x00000000000;
9 dspresult = 0x01;
11 __asm
12 ("subu_s.ob %0, %2, %3\n\t"
13 "rddsp %1\n\t"
14 : "=r"(rd), "=r"(dspreg)
15 : "r"(rs), "r"(rt)
18 dspreg = ((dspreg >> 20) & 0x01);
19 if ((rd != result) || (dspreg != dspresult)) {
20 printf("subu_s.ob error\n\t");
22 return -1;
25 return 0;