hw/arm/virt: introduce DEFINE_VIRT_MACHINE
[qemu/ar7.git] / tests / tcg / mips / mips64-dsp / addq_s_w.c
blob3e08f5d482d46e63cfd5a380d510f3a8e4a0237c
1 #include "io.h"
3 int main()
5 long long rd, rs, rt;
6 long long result;
8 rt = 0x10017EFD;
9 rs = 0x11111111;
10 result = 0x2112900e;
12 __asm
13 ("addq_s.w %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rs), "r"(rt)
17 if (rd != result) {
18 printf("addq_s.w error\n");
21 rt = 0x80017EFD;
22 rs = 0x81111111;
23 result = 0xffffffff80000000;
25 __asm
26 ("addq_s.w %0, %1, %2\n\t"
27 : "=r"(rd)
28 : "r"(rs), "r"(rt)
30 if (rd != result) {
31 printf("addq_s.w error\n");
34 rt = 0x7fffffff;
35 rs = 0x01111111;
36 result = 0x7fffffff;
38 __asm
39 ("addq_s.w %0, %1, %2\n\t"
40 : "=r"(rd)
41 : "r"(rs), "r"(rt)
43 if (rd != result) {
44 printf("addq_s.w error\n");
47 return 0;