PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / addq_s_qh.c
blobb638a2b93a3000ea1c09f0c7a35ef87b9a89a202
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
6 rs = 0x123456787FFF8000;
7 rt = 0x1111111100028000;
8 result = 0x234567897FFF8000;
9 dspresult = 0x1;
11 __asm
12 ("addq_s.qh %0, %2, %3\n\t"
13 "rddsp %1\n\t"
14 : "=r"(rd), "=r"(dspreg)
15 : "r"(rs), "r"(rt)
18 dspreg = ((dspreg >> 20) & 0x01);
19 if ((rd != result) || (dspreg != dspresult)) {
20 printf("addq_s.qh error\n");
22 return -1;
25 return 0;