PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shrav_pw.c
blobe19d5157977f43f0af075a63631611c4ee347ee9
1 #include "io.h"
3 int main(void)
5 long long rd, rt, rs;
6 long long res;
8 rt = 0x1234567887654321;
9 rs = 0x4;
10 res = 0x01234567f8765432;
12 __asm
13 ("shrav.pw %0, %1, %2"
14 : "=r"(rd)
15 : "r"(rt), "r"(rs)
18 if (rd != res) {
19 printf("shrav.pw error\n");
20 return -1;
23 rt = 0x1234567887654321;
24 rs = 0x0;
25 res = 0x1234567887654321;
27 __asm
28 ("shrav.pw %0, %1, %2"
29 : "=r"(rd)
30 : "r"(rt), "r"(rs)
33 if (rd != res) {
34 printf("shrav.pw error1\n");
35 return -1;
37 return 0;