disas/nanomips: Replace proprietary by POSIX data types
[qemu/ar7.git] / tests / tcg / mips / mips64-dsp / lbux.c
blobdbdc87bffed67ccedd5da32b86281bd381b52949
1 #include "io.h"
3 int main(void)
5 long long value, rd;
6 long long *p;
7 unsigned long long addr, index;
8 long long result;
10 value = 0xBCDEF389;
11 p = &value;
12 addr = (unsigned long long)p;
13 index = 0;
14 result = value & 0xFF;
15 __asm
16 ("lbux %0, %1(%2)\n\t"
17 : "=r"(rd)
18 : "r"(index), "r"(addr)
20 if (rd != result) {
21 printf("lbux wrong\n");
23 return -1;
26 return 0;