s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shrlv_ob.c
blobcb39c46716a12af2a5ec486cac05c6803eddcd0c
1 #include "io.h"
3 int main(void)
5 long long rd, rt, rs;
6 long long res;
8 rt = 0xab76543212345678;
9 rs = 0x3;
10 res = 0x150e0a0602060a0f;
12 __asm
13 ("shrlv.ob %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rt), "r"(rs)
18 if (rd != res) {
19 printf("shrlv.ob error\n");
20 return -1;
23 rt = 0xab76543212345678;
24 rs = 0x0;
25 res = 0xab76543212345678;
27 __asm
28 ("shrlv.ob %0, %1, %2\n\t"
29 : "=r"(rd)
30 : "r"(rt), "r"(rs)
33 if (rd != res) {
34 printf("shrlv.ob error\n");
35 return -1;
38 return 0;