virtio-serial: make flow control explicit in virtio-console
[qemu/agraf.git] / tests / tcg / mips / mips64-dspr2 / addu_s_qh.c
blobb0c162625135a3a91e28159c9df2f311a0450268
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dspreg;
6 long long result, dspresult;
8 rs = 0x123456787FFF0000;
9 rt = 0x1111111180000000;
10 result = 0x23456789FFFF0000;
11 dspresult = 0x0;
13 __asm("addu_s.qh %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dspreg)
16 : "r"(rs), "r"(rt)
19 dspreg = ((dspreg >> 20) & 0x01);
20 if ((rd != result) || (dspreg != dspresult)) {
21 printf("1 addu_s.qh error\n");
22 return -1;
25 rs = 0x12345678FFFF0000;
26 rt = 0x11111111000F0000;
27 result = 0x23456789FFFF0000;
28 dspresult = 0x01;
30 __asm("addu_s.qh %0, %2, %3\n\t"
31 "rddsp %1\n\t"
32 : "=r"(rd), "=r"(dspreg)
33 : "r"(rs), "r"(rt)
36 dspreg = ((dspreg >> 20) & 0x01);
37 if ((rd != result) || (dspreg != dspresult)) {
38 printf("2 addu_s.qh error\n");
39 return -1;
42 return 0;