s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / prependd.c
blobb4208c2dabc9c4cd8367abb2ec61086e6f462624
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 ("prependd %0, %1, 0x0\n\t"
13 : "=r"(rt)
14 : "r"(rs)
17 if (rt != res) {
18 printf("prependd error\n");
19 return -1;
22 rt = 0x1234567887654321;
23 rs = 0xabcd1234abcd8765;
25 res = 0xd876512345678876;
26 __asm
27 ("prependd %0, %1, 0x4\n\t"
28 : "=r"(rt)
29 : "r"(rs)
32 if (rt != res) {
33 printf("prependd error\n");
34 return -1;
36 return 0;