s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / precr_sra_qh_pw.c
blob8bb16de9af0b534e95273a1a95c1129b495f284b
1 #include "io.h"
3 int main(void)
5 long long rs, rt;
6 long long res;
8 rt = 0x8765432187654321;
9 rs = 0x1234567812345678;
11 res = 0x4321432156785678;
13 __asm
14 ("precr_sra.qh.pw %0, %1, 0x0\n\t"
15 : "=r"(rt)
16 : "r"(rs)
19 if (rt != res) {
20 printf("precr_sra.qh.pw error\n");
21 return -1;
24 rt = 0x8765432187654321;
25 rs = 0x1234567812345678;
27 res = 0x5432543245674567;
29 __asm
30 ("precr_sra.qh.pw %0, %1, 0x4\n\t"
31 : "=r"(rt)
32 : "r"(rs)
35 if (rt != res) {
36 printf("precr_sra.qh.pw error\n");
37 return -1;
39 return 0;