s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / repl_qh.c
blob82afc371676ea12f838abe445b126f535e613cb0
1 #include "io.h"
3 int main(void)
5 long long rd, result;
6 rd = 0;
7 result = 0x01FF01FF01FF01FF;
9 __asm
10 ("repl.qh %0, 0x1FF\n\t"
11 : "=r"(rd)
14 if (result != rd) {
15 printf("repl.qh error 1\n");
17 return -1;
20 rd = 0;
21 result = 0xFE00FE00FE00FE00;
22 __asm
23 ("repl.qh %0, 0xFFFFFFFFFFFFFE00\n\t"
24 : "=r"(rd)
27 if (result != rd) {
28 printf("repl.qh error 2\n");
30 return -1;
33 return 0;