virtio-serial: make flow control explicit in virtio-console
[qemu/agraf.git] / tests / tcg / mips / mips64-dspr2 / balign.c
blob7fbe815782984869866d20bcd9582c5c5a75d2ba
1 #include"io.h"
3 int main(void)
5 long long rs, rt;
6 long long result;
8 rs = 0xFF0055AA;
9 rt = 0x0113421B;
10 result = 0x13421BFF;
11 __asm
12 ("balign %0, %1, 0x01\n\t"
13 : "+r"(rt)
14 : "r"(rs)
16 if (rt != result) {
17 printf("balign error\n");
18 return -1;
21 rs = 0xFFFF0FFF;
22 rt = 0x00010111;
23 result = 0x11FFFF0F;
24 __asm
25 ("balign %0, %1, 0x03\n\t"
26 : "+r"(rt)
27 : "r"(rs)
29 if (rt != result) {
30 printf("balign error\n");
31 return -1;
34 return 0;