PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / repl_ph.c
blob11d29bdbc24244195caad570a5221fa28b23f880
1 #include "io.h"
3 int main(void)
5 long long rd, result;
7 result = 0x01BF01BF;
8 __asm
9 ("repl.ph %0, 0x1BF\n\t"
10 : "=r"(rd)
12 if (rd != result) {
13 printf("repl.ph wrong\n");
15 return -1;
18 result = 0x01FF01FF;
19 __asm
20 ("repl.ph %0, 0x01FF\n\t"
21 : "=r"(rd)
23 if (rd != result) {
24 printf("repl.ph wrong\n");
26 return -1;
29 return 0;