qemu/tests/tcg/mips/mips32-dsp/repl_qb.c

17 lines
213 B
C
Raw Normal View History

#include<stdio.h>
#include<assert.h>
int main()
{
int rd, result;
result = 0xBFBFBFBF;
__asm
("repl.qb %0, 0xBF\n\t"
: "=r"(rd)
);
assert(rd == result);
return 0;
}