s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shllv_s_w.c
blob5f6af8b8c0a97d3436247b38d8c1e1b31e757af1
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, dsp;
6 long long result, resultdsp;
8 rs = 0x0B;
9 rt = 0x12345678;
10 result = 0x7FFFFFFF;
11 resultdsp = 0x01;
13 __asm
14 ("shllv_s.w %0, %2, %3\n\t"
15 "rddsp %1\n\t"
16 : "=r"(rd), "=r"(dsp)
17 : "r"(rt), "r"(rs)
19 dsp = (dsp >> 22) & 0x01;
20 if ((dsp != resultdsp) || (rd != result)) {
21 printf("shllv_s.w wrong\n");
23 return -1;
26 return 0;