s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / addqh_r_w.c
blob75a75c50f32d31bf758d8b22ce50c1e289812b1b
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x00000010;
10 rt = 0x00000001;
11 result = 0x00000009;
13 __asm
14 ("addqh_r.w %0, %1, %2\n\t"
15 : "=r"(rd)
16 : "r"(rs), "r"(rt)
19 assert(rd == result);
21 rs = 0xFFFFFFFE;
22 rt = 0x00000001;
23 result = 0x00000000;
25 __asm
26 ("addqh_r.w %0, %1, %2\n\t"
27 : "=r"(rd)
28 : "r"(rs), "r"(rt)
31 assert(rd == result);
33 return 0;