block: use drained section in bdrv_close
[qemu/ar7.git] / tests / tcg / mips / mips64-dspr2 / precr_sra_ph_w.c
blobb1d7bcdf8e4f85bd63ffb8c251e56605079463b1
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.ph.w %0, %1, 0x00\n\t"
14 : "+r"(rt)
15 : "r"(rs)
17 if (result != rt) {
18 printf("precr_sra.ph.w error\n");
19 return -1;
22 rs = 0x12345678;
23 rt = 0x87654321;
24 result = 0xFFFFFFFFFFFF0000;
26 __asm
27 ("precr_sra.ph.w %0, %1, 0x1F\n\t"
28 : "+r"(rt)
29 : "r"(rs)
31 if (result != rt) {
32 printf("precr_sra.ph.w error\n");
33 return -1;
36 return 0;