PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / muleu_s_qh_obr.c
blob52ed9c095a839c5985c9f21bb5f4d2def8cbb87b
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 = 0x0202020212345678;
12 rt = 0x0034432112344321;
13 result = 0x03A8FFFFFFFFFFFF;
14 resdsp = 0x01;
16 __asm
17 ("muleu_s.qh.obr %0, %2, %3\n\t"
18 "rddsp %1\n\t"
19 : "=r"(rd), "=r"(dsp)
20 : "r"(rs), "r"(rt)
23 dsp = (dsp >> 21) & 0x01;
24 if ((rd != result) || (resdsp != dsp)) {
25 printf("muleu_s.qh.obr error\n");
27 return -1;
30 return 0;