qemu-error: add {error, warn}_report_once_cond
[qemu.git] / tests / tcg / mips / mips64-dsp / precr_sra_r_qh_pw.c
blob734ac322e7f839abbb5c3824c71bea4bf26e50d1
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_r.qh.pw %0, %1, 0x0\n\t"
15 : "=r"(rt)
16 : "r"(rs)
19 if (rt != res) {
20 printf("precr_sra_r.qh.pw error\n");
21 return -1;
24 rt = 0x8765432187654321;
25 rs = 0x1234567812345678;
27 res = 0x5432543245684568;
29 __asm
30 ("precr_sra_r.qh.pw %0, %1, 0x4\n\t"
31 : "=r"(rt)
32 : "r"(rs)
35 if (rt != res) {
36 printf("precr_sra_r.qh.pw error\n");
37 return -1;
39 return 0;