PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shrav_r_qh.c
blobfd187a1e0b6a39bfde90a44bd08bd99d94f01c38
1 #include "io.h"
3 int main(void)
5 long long rd, rt, rs;
6 long long res;
8 rt = 0x8512345654323454;
9 rs = 0x3;
10 res = 0xf0a2068b0a86068b;
12 __asm
13 ("shrav_r.qh %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rt), "r"(rs)
18 if (rd != res) {
19 printf("shrav_r.qh error\n");
20 return -1;
23 rt = 0x400000000000000;
24 rs = 0x0;
25 res = 0x400000000000000;
27 __asm
28 ("shrav_r.qh %0, %1, %2\n\t"
29 : "=r"(rd)
30 : "r"(rt), "r"(rs)
33 if (rd != res) {
34 printf("shrav_r.qh error\n");
35 return -1;
38 return 0;