s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shll_qb.c
blob8c1b91c635d22e36885974333d3670d4fca94211
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rt, dsp;
7 int result, resultdsp;
9 rt = 0x87654321;
10 result = 0x87654321;
11 resultdsp = 0x00;
13 __asm
14 ("shll.qb %0, %2, 0x00\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rt)
19 dsp = (dsp >> 22) & 0x01;
20 assert(rd == result);
22 rt = 0x87654321;
23 result = 0x38281808;
24 resultdsp = 0x01;
26 __asm
27 ("shll.qb %0, %2, 0x03\n\t"
28 "rddsp %1\n\t"
29 : "=r"(rd), "=r"(dsp)
30 : "r"(rt)
32 dsp = (dsp >> 22) & 0x01;
33 assert(rd == result);
35 return 0;