PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dsp / cmp_lt_ph.c
blob3fb4827ad761bf99ea8cd30e18d7eb784de07e5f
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x11777066;
10 rt = 0x55AA33FF;
11 result = 0x02;
12 __asm
13 ("cmp.lt.ph %1, %2\n\t"
14 "rddsp %0\n\t"
15 : "=r"(rd)
16 : "r"(rs), "r"(rt)
19 rd = (rd >> 24) & 0x03;
20 assert(rd == result);
22 rs = 0x11777066;
23 rt = 0x11777066;
24 result = 0x00;
25 __asm
26 ("cmp.lt.ph %1, %2\n\t"
27 "rddsp %0\n\t"
28 : "=r"(rd)
29 : "r"(rs), "r"(rt)
31 rd = (rd >> 24) & 0x03;
32 assert(rd == result);
34 return 0;