s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shrav_r_w.c
blob2ab03bb5daae59508eb45e71f87d775b5090a399
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x03;
10 rt = 0x87654321;
11 result = 0xF0ECA864;
13 __asm
14 ("shrav_r.w %0, %1, %2\n\t"
15 : "=r"(rd)
16 : "r"(rt), "r"(rs)
18 assert(rd == result);
20 rs = 0x00;
21 rt = 0x40000000;
22 result = 0x40000000;
24 __asm
25 ("shrav_r.w %0, %1, %2\n\t"
26 : "=r"(rd)
27 : "r"(rt), "r"(rs)
30 assert(rd == result);
31 return 0;