mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 06:53:43 +08:00
d70080c4e3
Add MIPS ASE DSP testcases. Signed-off-by: Jia Liu <proljc@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
22 lines
282 B
C
22 lines
282 B
C
#include "io.h"
|
|
|
|
int main(void)
|
|
{
|
|
long long rd, result;
|
|
rd = 0;
|
|
result = 0xFFFFFFFFFFFFFFFF;
|
|
|
|
__asm
|
|
("repl.ob %0, 0xFF\n\t"
|
|
: "=r"(rd)
|
|
);
|
|
|
|
if (result != rd) {
|
|
printf("repl.ob error\n");
|
|
|
|
return -1;
|
|
}
|
|
|
|
return 0;
|
|
}
|