s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / precr_sra_ph_w.c
blob5c9baab03d0098d58cca7162876788b01b612eeb
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rs, rt;
7 int result;
9 rs = 0x12345678;
10 rt = 0x87654321;
11 result = 0x43215678;
13 __asm
14 ("precr_sra.ph.w %0, %1, 0x00\n\t"
15 : "+r"(rt)
16 : "r"(rs)
18 assert(result == rt);
20 rs = 0x12345678;
21 rt = 0x87654321;
22 result = 0xFFFF0000;
24 __asm
25 ("precr_sra.ph.w %0, %1, 0x1F\n\t"
26 : "+r"(rt)
27 : "r"(rs)
29 assert(result == rt);
31 return 0;