s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shrav_ph.c
blob1b4e98374609b59aa89e325b2371ad3b24966b6a
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt;
6 long long result;
8 rs = 0x03;
9 rt = 0x87654321;
10 result = 0xFFFFFFFFF0EC0864;
12 __asm
13 ("shrav.ph %0, %1, %2\n\t"
14 : "=r"(rd)
15 : "r"(rt), "r"(rs)
17 if (rd != result) {
18 printf("shrav.ph wrong\n");
20 return -1;
23 return 0;