s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / dappend.c
blobba8e12182e713a07eb1bba723f2e7ef15995858d
1 #include "io.h"
3 int main(void)
5 long long rt, rs;
6 long long res;
7 rt = 0x1234567887654321;
8 rs = 0xabcd1234abcd8765;
10 res = 0x1234567887654321;
11 __asm
12 ("dappend %0, %1, 0x0\n\t"
13 : "=r"(rt)
14 : "r"(rs)
17 if (rt != res) {
18 printf("dappend error\n");
19 return -1;
22 rt = 0x1234567887654321;
23 rs = 0xabcd1234abcd8765;
25 res = 0x2345678876543215;
26 __asm
27 ("dappend %0, %1, 0x4\n\t"
28 : "=r"(rt)
29 : "r"(rs)
32 if (rt != res) {
33 printf("dappend error\n");
34 return -1;
36 return 0;