libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / dpax_w_ph.c
blob9d595fc14abf2c6de8a4cf83ba35c0f7a54d36d9
1 #include"io.h"
3 int main(void)
5 long rs, rt;
6 long ach = 5, acl = 5;
7 long resulth, resultl;
9 rs = 0x00FF00FF;
10 rt = 0x00010002;
11 resulth = 0x05;
12 resultl = 0x0302;
13 __asm
14 ("mthi %0, $ac1\n\t"
15 "mtlo %1, $ac1\n\t"
16 "dpax.w.ph $ac1, %2, %3\n\t"
17 "mfhi %0, $ac1\n\t"
18 "mflo %1, $ac1\n\t"
19 : "+r"(ach), "+r"(acl)
20 : "r"(rs), "r"(rt)
22 if (ach != resulth) {
23 printf("dpax.w.ph error\n");
24 return -1;
26 if (acl != resultl) {
27 printf("dpax.w.ph error\n");
28 return -1;
31 return 0;