libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / prepend.c
blob4ab083e969192b03d77c1f3e3ec01490c87d7817
1 #include"io.h"
3 int main(void)
5 long long rs, rt;
6 long long result;
8 rs = 0x12345678;
9 rt = 0x87654321;
10 result = 0xFFFFFFFF87654321;
11 __asm
12 ("prepend %0, %1, 0x00\n\t"
13 : "+r"(rt)
14 : "r"(rs)
16 if (rt != result) {
17 printf("prepend error\n");
18 return -1;
21 rs = 0x12345678;
22 rt = 0x87654321;
23 result = 0xFFFFFFFFACF10ECA;
24 __asm
25 ("prepend %0, %1, 0x0F\n\t"
26 : "+r"(rt)
27 : "r"(rs)
29 if (rt != result) {
30 printf("prepend error\n");
31 return -1;
34 return 0;