s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shllv_s_qh.c
blobdb3832d0911474c12cd8f699a3154880e3253bed
1 #include "io.h"
3 int main(void)
5 long long rd, rt, rs, dsp;
6 long long result, resultdsp;
8 rt = 0x8765432112345678;
9 rs = 0x0;
10 result = 0x8765432112345678;
11 resultdsp = 0;
13 __asm
14 ("shllv_s.qh %0, %2, %3\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rt), "r"(rs)
20 dsp = (dsp >> 22) & 0x01;
21 if ((dsp != resultdsp) || (rd != result)) {
22 printf("shllv_s.qh wrong\n");
23 return -1;
26 rt = 0x8765432112345678;
27 rs = 0x4;
28 result = 0x80007fff7fff7fff;
29 resultdsp = 1;
31 __asm
32 ("shllv_s.qh %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_s.qh wrong\n");
41 return -1;
44 return 0;