PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / addq_qh.c
blob4b874afb8a47589fecac1452ef94885811cbbe9c
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
7 rs = 0x123456787FFF8010;
8 rt = 0x1111111100018000;
9 result = 0x2345678980000010;
10 dspresult = 0x1;
12 __asm
13 ("addq.qh %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dspreg)
16 : "r"(rs), "r"(rt)
19 dspreg = ((dspreg >> 20) & 0x01);
21 if ((rd != result) || (dspreg != dspresult)) {
22 printf("addq.qh error\n");
24 return -1;
27 return 0;