PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / cmpu_eq_qb.c
blob28f3bec2523af403bdc0f6a2157ae54a4786cb64
1 #include "io.h"
3 int main(void)
5 long long rs, rt;
6 long long dsp;
7 long long result;
9 rs = 0x11777066;
10 rt = 0x55AA70FF;
11 result = 0x02;
12 __asm
13 ("cmpu.eq.qb %1, %2\n\t"
14 "rddsp %0\n\t"
15 : "=r"(dsp)
16 : "r"(rs), "r"(rt)
18 dsp = (dsp >> 24) & 0x0F;
19 if (dsp != result) {
20 printf("cmpu.eq.qb wrong\n");
22 return -1;
25 rs = 0x11777066;
26 rt = 0x11777066;
27 result = 0x0F;
28 __asm
29 ("cmpu.eq.qb %1, %2\n\t"
30 "rddsp %0\n\t"
31 : "=r"(dsp)
32 : "r"(rs), "r"(rt)
34 dsp = (dsp >> 24) & 0x0F;
35 if (dsp != result) {
36 printf("cmpu.eq.qb wrong\n");
38 return -1;
41 return 0;