qapi: drop the sentinel in enum array
[qemu/armbru.git] / tests / tcg / mips / mips64-dspr2 / cmpgdu_lt_ob.c
blobd80b4e6ab9b54f75e4891bca05c58a37d89046c0
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result, dspreg, dspresult;
7 rs = 0x123456789ABCDEF0;
8 rt = 0x123456789ABCDEFF;
9 dspresult = 0x01;
10 result = 0x01;
12 __asm("cmpgdu.lt.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("cmpgdu.lt.ob error\n");
22 return -1;
25 rs = 0x143356789ABCDEF0;
26 rt = 0x123456789ABCDEFF;
27 dspresult = 0x41;
28 result = 0x41;
30 __asm("cmpgdu.lt.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("cmpgdu.lt.ob error\n");
40 return -1;
43 return 0;