PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / muleu_s_ph_qbl.c
blob66a382806a21829a216ec8a17eb952706149dc4c
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt, dsp;
7 int result, resultdsp;
9 rs = 0x80001234;
10 rt = 0x80004321;
11 result = 0xFFFF0000;
12 resultdsp = 1;
14 __asm
15 ("muleu_s.ph.qbl %0, %2, %3\n\t"
16 "rddsp %1\n\t"
17 : "=r"(rd), "=r"(dsp)
18 : "r"(rs), "r"(rt)
20 dsp = (dsp >> 21) & 0x01;
21 assert(rd == result);
22 assert(dsp == resultdsp);
24 return 0;