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