libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / adduh_r_qb.c
blobae65fa5e18649dd595b66862537b87abb5d38f09
1 #include"io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long result;
8 rs = 0xFF0055AA;
9 rt = 0x01112211;
10 result = 0xffffffff80093C5E;
11 __asm
12 ("adduh_r.qb %0, %1, %2\n\t"
13 : "=r"(rd)
14 : "r"(rs), "r"(rt)
16 if (rd != result) {
17 printf("adduh_r.qb error\n");
18 return -1;
21 rs = 0xFFFF0FFF;
22 rt = 0x00010111;
23 result = 0xffffffff80800888;
24 __asm
25 ("adduh_r.qb %0, %1, %2\n\t"
26 : "=r"(rd)
27 : "r"(rs), "r"(rt)
29 if (rd != result) {
30 printf("adduh_r.qb error\n");
31 return -1;
34 return 0;