s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shrl_qb.c
bloba7e4e6a5e4f5491ef0b807e4716eaf6651257b93
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rt;
7 int result;
9 rt = 0x12345678;
10 result = 0x00010203;
12 __asm
13 ("shrl.qb %0, %1, 0x05\n\t"
14 : "=r"(rd)
15 : "r"(rt)
17 assert(rd == result);
19 rt = 0x12345678;
20 result = 0x12345678;
22 __asm
23 ("shrl.qb %0, %1, 0x0\n\t"
24 : "=r"(rd)
25 : "r"(rt)
28 assert(rd == result);
30 return 0;