s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / muleu_s_ph_qbr.c
blob8bd0e9942c59f9fcbaf88d30eb7430bd26088904
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dsp;
6 long long result, resultdsp;
8 rs = 0x8000;
9 rt = 0x80004321;
10 result = 0xFFFFFFFFFFFF0000;
11 resultdsp = 1;
13 __asm
14 ("muleu_s.ph.qbr %0, %2, %3\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rs), "r"(rt)
19 dsp = (dsp >> 21) & 0x01;
20 if ((rd != result) || (dsp != resultdsp)) {
21 printf("muleu_s.ph.qbr wrong\n");
23 return -1;
26 return 0;