s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / adduh_r_qb.c
blob81e98c190d2badad5f38033c2a074aac0cc44992
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0xFF0055AA;
10 rt = 0x01112211;
11 result = 0x80093C5E;
12 __asm
13 ("adduh_r.qb %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rs), "r"(rt)
17 assert(rd == result);
19 rs = 0xFFFF0FFF;
20 rt = 0x00010111;
21 result = 0x80800888;
22 __asm
23 ("adduh_r.qb %0, %1, %2\n\t"
24 : "=r"(rd)
25 : "r"(rs), "r"(rt)
27 assert(rd == result);
29 return 0;