s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / mulq_rs_qh.c
blob7863c0591204e8ee2e04242b29c1d5226e28c7fe
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dsp, dspresult;
6 rt = 0x80003698CE8F9201;
7 rs = 0x800034634BCDE321;
8 result = 0x7fff16587a530313;
10 dspresult = 0x01;
12 __asm
13 ("mulq_rs.qh %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dsp)
16 : "r"(rt), "r"(rs)
19 if (rd != result) {
20 printf("mulq_rs.qh error\n");
22 return -1;
25 dsp = (dsp >> 21) & 0x01;
26 if (dsp != dspresult) {
27 printf("mulq_rs.qh DSPControl Reg ouflag error\n");
29 return -1;
32 return 0;