PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / absq_s_ph.c
blobaa8411202e208598538496dd00fc64e685fa98e7
1 #include<stdio.h>
2 #include<assert.h>
5 int main()
7 int rd, rt;
8 int result;
10 rt = 0x10017EFD;
11 result = 0x10017EFD;
13 __asm
14 ("absq_s.ph %0, %1\n\t"
15 : "=r"(rd)
16 : "r"(rt)
18 assert(rd == result);
20 rt = 0x8000A536;
21 result = 0x7FFF5ACA;
23 __asm
24 ("absq_s.ph %0, %1\n\t"
25 : "=r"(rd)
26 : "r"(rt)
28 assert(rd == result);
30 return 0;