PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / muleu_s_qh_obl.c
blobdb0d386e885bb37b97cbc7d92bdc044decc05520
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long dsp;
7 long long resdsp, result;
9 rd = 0;
10 rs = 0x1234567802020202;
11 rt = 0x0034432112344321;
12 result = 0x03A8FFFFFFFFFFFF;
13 resdsp = 0x01;
15 __asm
16 ("muleu_s.qh.obl %0, %2, %3\n\t"
17 "rddsp %1\n\t"
18 : "=r"(rd), "=r"(dsp)
19 : "r"(rs), "r"(rt)
22 dsp = (dsp >> 21) & 0x01;
23 if ((rd != result) || (resdsp != dsp)) {
24 printf("muleu_s.qh.obl error\n");
26 return -1;
29 return 0;