s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shllv_pw.c
blob8d4ec295bda15b3033a1457db1c442c9f8c72bb8
1 #include "io.h"
3 int main(void)
5 long long rd, rt, rs, dsp;
6 long long result, resultdsp;
7 rt = 0x8765432112345678;
8 rs = 0x0;
9 result = 0x8765432112345678;
10 resultdsp = 0;
12 __asm
13 ("shllv.pw %0, %2, %3\n\t"
14 "rddsp %1\n\t"
15 : "=r"(rd), "=r"(dsp)
16 : "r"(rt), "r"(rs)
19 dsp = (dsp >> 22) & 0x01;
20 if ((dsp != resultdsp) || (rd != result)) {
21 printf("shllv.pw wrong\n");
22 return -1;
26 rt = 0x8765432112345678;
27 rs = 0x8;
28 result = 0x6543210034567800;
29 resultdsp = 1;
31 __asm
32 ("shllv.pw %0, %2, %3\n\t"
33 "rddsp %1\n\t"
34 : "=r"(rd), "=r"(dsp)
35 : "r"(rt), "r"(rs)
38 dsp = (dsp >> 22) & 0x01;
39 if ((dsp != resultdsp) || (rd != result)) {
40 printf("shllv.pw wrong\n");
41 return -1;
44 return 0;