PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / shll_s_ph.c
blob910fea3b317eb1c7e5068c67ff4359fe9f556e99
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rt, dsp;
7 int result, resultdsp;
9 rt = 0x12345678;
10 result = 0x7FFF7FFF;
11 resultdsp = 0x01;
13 __asm
14 ("shll_s.ph %0, %2, 0x0B\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rt)
19 dsp = (dsp >> 22) & 0x01;
20 assert(dsp == resultdsp);
21 assert(rd == result);
23 return 0;