PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / subq_s_ph.c
blob0b162f07eabcf70f478ffedba0bbccc482c07d18
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dsp;
6 long long result, resultdsp;
8 rs = 0x12345678;
9 rt = 0x87654321;
10 result = 0x7FFF1357;
11 resultdsp = 0x01;
13 __asm
14 ("subq_s.ph %0, %2, %3\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rs), "r"(rt)
19 dsp = (dsp >> 20) & 0x01;
20 if ((dsp != resultdsp) || (rd != result)) {
21 printf("subq_s.ph wrong\n");
23 return -1;
26 return 0;