s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / addqh_ph.c
blob921f0eaf33c7c81066dd6d330542065ed17bfab3
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x706A13FE;
10 rt = 0x13065174;
11 result = 0x41B832B9;
12 __asm
13 ("addqh.ph %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rs), "r"(rt)
17 assert(rd == result);
19 rs = 0x81000100;
20 rt = 0xc2000100;
21 result = 0xa1800100;
22 __asm
23 ("addqh.ph %0, %1, %2\n\t"
24 : "=r"(rd)
25 : "r"(rs), "r"(rt)
27 assert(rd == result);
29 return 0;