s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shra_r_ph.c
blobadc4ae68bdc39417511c152eea46d00328baa0e6
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rt;
7 int result;
9 rt = 0x87654321;
10 result = 0xF0ED0864;
12 __asm
13 ("shra_r.ph %0, %1, 0x03\n\t"
14 : "=r"(rd)
15 : "r"(rt)
17 assert(rd == result);
19 rt = 0x87654321;
20 result = 0x87654321;
22 __asm
23 ("shra_r.ph %0, %1, 0x00\n\t"
24 : "=r"(rd)
25 : "r"(rt)
27 assert(rd == result);
29 return 0;