PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / repl_pw.c
blobd35376a2a32196fb0ff1ea10cc178182273ab975
1 #include "io.h"
3 int main(void)
5 long long rd, result;
6 rd = 0;
7 result = 0x000001FF000001FF;
9 __asm
10 ("repl.pw %0, 0x1FF\n\t"
11 : "=r"(rd)
14 if (result != rd) {
15 printf("repl.pw error1\n");
17 return -1;
20 rd = 0;
21 result = 0xFFFFFE00FFFFFE00;
22 __asm
23 ("repl.pw %0, 0xFFFFFFFFFFFFFE00\n\t"
24 : "=r"(rd)
27 if (result != rd) {
28 printf("repl.pw error2\n");
30 return -1;
33 return 0;