PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / addu_s_ob.c
blobe89a4638b71cad8555a1b5af90c422703f0fa088
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
6 rs = 0x123456789ABCDEF0;
7 rt = 0x3456123498DEF390;
8 result = 0x468A68ACFFFFFFFF;
9 dspresult = 0x01;
11 __asm
12 ("addu_s.ob %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);
20 if ((rd != result) || (dspreg != dspresult)) {
21 printf("addu_s.ob error\n\t");
23 return -1;
26 return 0;