PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / precrqu_s_qb_ph.c
blob7481d5af3a5b2a1fb0e678905bd3fdade36aa9bd
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int dsp;
8 int result;
10 rs = 0x12345678;
11 rt = 0x87657FFF;
12 result = 0x24AC00FF;
14 __asm
15 ("precrqu_s.qb.ph %0, %2, %3\n\t"
16 "rddsp %1\n\t"
17 : "=r"(rd), "=r"(dsp)
18 : "r"(rs), "r"(rt)
20 assert(result == rd);
21 assert(((dsp >> 22) & 0x01) == 0x01);
23 return 0;