s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dinsv.c
blobf6192188c01ff72ea97146b5651bc046fbeac3f2
1 #include "io.h"
3 int main(void)
5 long long rs, rt, dsp;
6 long long res;
8 rs = 0x1234567887654321;
9 rt = 0x1234567812345678;
10 dsp = 0x2222;
11 res = 0x1234567812345678;
12 __asm
13 ("wrdsp %1, 0x3\n\t"
14 "wrdsp %1\n\t"
15 "dinsv %0, %2\n\t"
16 : "+r"(rt)
17 : "r"(dsp), "r"(rs)
20 if (rt != res) {
21 printf("dinsv error\n");
22 return -1;
25 return 0;