virtio-serial: make flow control explicit in virtio-console
[qemu/agraf.git] / tests / tcg / mips / mips64-dspr2 / precr_sra_r_ph_w.c
blob62d220dcaeaeb951e477919e5b7ea9db88118e31
1 #include"io.h"
3 int main(void)
5 long long rs, rt;
6 long long result;
8 rs = 0x12345678;
9 rt = 0x87654321;
10 result = 0x43215678;
12 __asm
13 ("precr_sra_r.ph.w %0, %1, 0x00\n\t"
14 : "+r"(rt)
15 : "r"(rs)
17 if (result != rt) {
18 printf("precr_sra_r.ph.w error\n");
19 return -1;
22 rs = 0x12345678;
23 rt = 0x87654321;
24 result = 0xFFFFFFFFFFFF0000;
26 __asm
27 ("precr_sra_r.ph.w %0, %1, 0x1F\n\t"
28 : "+r"(rt)
29 : "r"(rs)
31 if (result != rt) {
32 printf("precr_sra_r.ph.w error\n");
33 return -1;
36 return 0;