s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shll_ph.c
blobb8f1ff528503cff624c80a8e56b9e9dae109c46d
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rt, dsp;
7 int result, resultdsp;
9 rt = 0x12345678;
10 result = 0xA000C000;
11 resultdsp = 1;
13 __asm
14 ("shll.ph %0, %2, 0x0B\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rt)
19 dsp = (dsp >> 22) & 0x01;
20 assert(dsp == resultdsp);
21 assert(rd == result);
23 return 0;