virtio-serial: make flow control explicit in virtio-console
[qemu/agraf.git] / tests / tcg / mips / mips64-dspr2 / dbalign.c
blobc7431b18579160082401562f705d6b0716a1cbc4
1 #include "io.h"
3 int main(void)
5 long long rt, rs;
6 long long res;
8 rt = 0x1234567887654321;
9 rs = 0xabcd1234abcd1234;
11 res = 0x34567887654321ab;
13 asm ("dbalign %0, %1, 0x1\n"
14 : "=r"(rt)
15 : "r"(rs)
18 if (rt != res) {
19 printf("dbalign error\n");
20 return -1;
23 rt = 0x1234567887654321;
24 rs = 0xabcd1234abcd1234;
26 res = 0x7887654321abcd12;
28 asm ("dbalign %0, %1, 0x3\n"
29 : "=r"(rt)
30 : "r"(rs)
33 if (rt != res) {
34 printf("dbalign error\n");
35 return -1;
38 return 0;