PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shilov.c
blobe82615a8c9095d4d0ac9e027048f8ac5ca354bcf
1 #include "io.h"
3 int main(void)
5 long long rs, ach, acl;
6 long long resulth, resultl;
8 rs = 0x0F;
9 ach = 0xBBAACCFF;
10 acl = 0x1C3B001D;
12 resulth = 0x17755;
13 resultl = 0xFFFFFFFF99fe3876;
15 __asm
16 ("mthi %0, $ac1\n\t"
17 "mtlo %1, $ac1\n\t"
18 "shilov $ac1, %2\n\t"
19 "mfhi %0, $ac1\n\t"
20 "mflo %1, $ac1\n\t"
21 : "+r"(ach), "+r"(acl)
22 : "r"(rs)
24 if ((ach != resulth) || (acl != resultl)) {
25 printf("shilov wrong\n");
27 return -1;
30 return 0;