s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / muleq_s_w_phl.c
blob997a9f64d941500d6ddce2ce5fb81f6413cb897c
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dsp;
6 long long result, resultdsp;
8 rs = 0x80009988;
9 rt = 0x80009988;
10 result = 0x7FFFFFFF;
11 resultdsp = 1;
13 __asm
14 ("muleq_s.w.phl %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("muleq_s.w.phl wrong\n");
23 return -1;
26 rs = 0x12343322;
27 rt = 0x43213322;
28 result = 0x98be968;
29 resultdsp = 1;
31 __asm
32 ("muleq_s.w.phl %0, %2, %3\n\t"
33 "rddsp %1\n\t"
34 : "=r"(rd), "=r"(dsp)
35 : "r"(rs), "r"(rt)
37 dsp = (dsp >> 21) & 0x01;
38 if ((rd != result) || (dsp != resultdsp)) {
39 printf("muleq_s.w.phl wrong\n");
41 return -1;
44 return 0;