PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shll_s_w.c
blob57800615d27222e1261284247dd9157f6ce6ffcb
1 #include "io.h"
3 int main(void)
5 long long rd, rt, dsp;
6 long long result, resultdsp;
8 rt = 0x12345678;
9 result = 0x7FFFFFFF;
10 resultdsp = 0x01;
12 __asm
13 ("shll_s.w %0, %2, 0x0B\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dsp)
16 : "r"(rt)
18 dsp = (dsp >> 22) & 0x01;
19 if ((dsp != resultdsp) || (rd != result)) {
20 printf("shll_s.w wrong\n");
22 return -1;
25 return 0;