libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / subuh_ob.c
blob3fc452bf8edba10d6324990b601bba2552a35ccf
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result;
7 rd = 0x0;
8 rs = 0x246856789ABCDEF0;
9 rt = 0x123456789ABCDEF0;
10 result = 0x091A000000000000;
12 __asm("subuh.ob %0, %1, %2\n\t"
13 : "=r"(rd)
14 : "r"(rs), "r"(rt)
17 if (rd != result) {
18 printf("subuh.ob error\n");
19 return -1;
22 rs = 0x246856789ABCDEF0;
23 rt = 0x1131517191B1D1F1;
24 result = 0x1b4f2d2d51637577;
26 __asm("subuh.ob %0, %1, %2\n\t"
27 : "=r"(rd)
28 : "r"(rs), "r"(rt)
31 if (rd != result) {
32 printf("subuh.ob error\n");
33 return -1;
35 return 0;