libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / addqh_r_ph.c
blob890ec98d9be349f0e0cb925f2fb301979237eee7
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long result;
8 rs = 0x706A13FE;
9 rt = 0x13065174;
10 result = 0x41B832B9;
11 __asm
12 ("addqh_r.ph %0, %1, %2\n\t"
13 : "=r"(rd)
14 : "r"(rs), "r"(rt)
16 if (rd != result) {
17 printf("addqh_r.ph error\n");
18 return -1;
21 rs = 0x81010100;
22 rt = 0xc2000100;
23 result = 0xffffffffa1810100;
24 __asm
25 ("addqh_r.ph %0, %1, %2\n\t"
26 : "=r"(rd)
27 : "r"(rs), "r"(rt)
29 if (rd != result) {
30 printf("addqh_r.ph error\n");
31 return -1;
34 return 0;