PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / precrqu_s_ob_qh.c
blobe27c36b7fd59e78f4ce0a4ca7ad5338e0a1c357a
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dsp;
6 long long res, resdsp;
8 rs = 0x7fff567812345678;
9 rt = 0x8765432187654321;
11 res = 0xffac24ac00860086;
12 resdsp = 0x1;
14 __asm
15 ("precrqu_s.ob.qh %0, %2, %3\n\t"
16 "rddsp %1\n\t"
17 : "=r"(rd), "=r"(dsp)
18 : "r"(rs), "r"(rt)
20 dsp = (dsp >> 22) & 0x1;
21 if ((rd != res) || (dsp != resdsp)) {
22 printf("precrq_s.ob.qh error\n");
23 return -1;
26 return 0;