block: use drained section in bdrv_close
[qemu/ar7.git] / tests / tcg / mips / mips64-dspr2 / subuh_r_ob.c
blobfc20ffd09ebdb3b696822130476fce4cc35c8506
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result;
7 rd = 0x0;
8 rs = 0x246956789ABCDEF0;
9 rt = 0x123456789ABCDEF0;
10 result = 0x091B000000000000;
12 __asm("subuh.ob %0, %1, %2\n\t"
13 : "=r"(rd)
14 : "r"(rs), "r"(rt)
17 if (rd != result) {
18 printf("subuh.ob error\n");
19 return -1;
22 return 0;