PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / mulsaq_s_w_ph.c
blob06c91a43e7eaeeef9019ee71731832f5a044988b
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rs, rt, ach, acl;
7 int resulth, resultl;
9 ach = 0x05;
10 acl = 0x00BBDDCC;
11 rs = 0x80001234;
12 rt = 0x80004321;
13 resulth = 0x05;
14 resultl = 0x772ff463;
16 __asm
17 ("mthi %0, $ac1\n\t"
18 "mtlo %1, $ac1\n\t"
19 "mulsaq_s.w.ph $ac1, %2, %3\n\t"
20 "mfhi %0, $ac1\n\t"
21 "mflo %1, $ac1\n\t"
22 : "+r"(ach), "+r"(acl)
23 : "r"(rs), "r"(rt)
25 assert(ach == resulth);
26 assert(acl == resultl);
28 return 0;