s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / insv.c
blobfc5696f4c4ae4c5b969d6a734c462386e70159dd
1 #include "io.h"
3 int main(void)
5 long long rt, rs, dsp;
6 long long result;
8 /* msb = 10, lsb = 5 */
9 dsp = 0x305;
10 rt = 0x12345678;
11 rs = 0xffffffff87654321;
12 result = 0x12345338;
13 __asm
14 ("wrdsp %2, 0x03\n\t"
15 "insv %0, %1\n\t"
16 : "+r"(rt)
17 : "r"(rs), "r"(dsp)
19 if (rt != result) {
20 printf("insv wrong\n");
22 return -1;
25 return 0;