libqtest: Inline g_assert_no_errno()
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / cmpgdu_eq_ob.c
blob61217f38cf412eae39f28a24b07ec80076e029b5
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 result = 0xFE;
10 dspresult = 0xFE;
12 __asm("cmpgdu.eq.ob %0, %2, %3\n\t"
13 "rddsp %1"
14 : "=r"(rd), "=r"(dspreg)
15 : "r"(rs), "r"(rt)
18 dspreg = ((dspreg >> 24) & 0xFF);
20 if ((rd != result) || (dspreg != dspresult)) {
21 printf("1 cmpgdu.eq.ob error\n");
22 return -1;
25 rs = 0x133256789ABCDEF0;
26 rt = 0x123456789ABCDEFF;
27 result = 0x3E;
28 dspresult = 0x3E;
30 __asm("cmpgdu.eq.ob %0, %2, %3\n\t"
31 "rddsp %1"
32 : "=r"(rd), "=r"(dspreg)
33 : "r"(rs), "r"(rt)
36 dspreg = ((dspreg >> 24) & 0xFF);
38 if ((rd != result) || (dspreg != dspresult)) {
39 printf("2 cmpgdu.eq.ob error\n");
40 return -1;
43 return 0;