s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / subuh_r_qb.c
blobdac81d47db605e345342d2e124d276c617e0e17f
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x12345678;
10 rt = 0x87654321;
11 result = 0xC6E80A2C;
13 __asm
14 ("subuh_r.qb %0, %1, %2\n\t"
15 : "=r"(rd)
16 : "r"(rs), "r"(rt)
18 assert(rd == result);
20 rs = 0xBEFC292A;
21 rt = 0x9205C1B4;
22 result = 0x167cb4bb;
24 __asm
25 ("subuh_r.qb %0, %1, %2\n\t"
26 : "=r"(rd)
27 : "r"(rs), "r"(rt)
29 assert(rd == result);
31 return 0;