Code Review
/
kvmfornfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Adding breaktrace & disabling timer migration"
[kvmfornfv.git]
/
qemu
/
tests
/
tcg
/
mips
/
mips64-dsp
/
repl_pw.c
1
#include "io.h"
2
3
int main(void)
4
{
5
long long rd, result;
6
rd = 0;
7
result = 0x000001FF000001FF;
8
9
__asm
10
("repl.pw %0, 0x1FF\n\t"
11
: "=r"(rd)
12
);
13
14
if (result != rd) {
15
printf("repl.pw error1\n");
16
17
return -1;
18
}
19
20
rd = 0;
21
result = 0xFFFFFE00FFFFFE00;
22
__asm
23
("repl.pw %0, 0xFFFFFFFFFFFFFE00\n\t"
24
: "=r"(rd)
25
);
26
27
if (result != rd) {
28
printf("repl.pw error2\n");
29
30
return -1;
31
}
32
33
return 0;
34
}