projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid x3 (gp), which is now TESTNUM
[riscv-tests.git]
/
isa
/
rv64ui
/
lhu.S
diff --git
a/isa/rv64ui/lhu.S
b/isa/rv64ui/lhu.S
index 5a55724d4b3389fd25af27734fc119936e009674..a4cc49bada1fe5470c685053f6ac5a71916fedde 100644
(file)
--- a/
isa/rv64ui/lhu.S
+++ b/
isa/rv64ui/lhu.S
@@
-31,18
+31,18
@@
RVTEST_CODE_BEGIN
# Test with a negative base
# Test with a negative base
- TEST_CASE( 10, x
3
, 0x00000000000000ff, \
+ TEST_CASE( 10, x
5
, 0x00000000000000ff, \
la x1, tdat; \
addi x1, x1, -32; \
la x1, tdat; \
addi x1, x1, -32; \
- lhu x
3
, 32(x1); \
+ lhu x
5
, 32(x1); \
)
# Test with unaligned base
)
# Test with unaligned base
- TEST_CASE( 11, x
3
, 0x000000000000ff00, \
+ TEST_CASE( 11, x
5
, 0x000000000000ff00, \
la x1, tdat; \
addi x1, x1, -5; \
la x1, tdat; \
addi x1, x1, -5; \
- lhu x
3
, 7(x1); \
+ lhu x
5
, 7(x1); \
)
#-------------------------------------------------------------
)
#-------------------------------------------------------------
@@
-62,14
+62,14
@@
RVTEST_CODE_BEGIN
#-------------------------------------------------------------
TEST_CASE( 18, x2, 2, \
#-------------------------------------------------------------
TEST_CASE( 18, x2, 2, \
- la x
3
, tdat; \
- lhu x2, 0(x
3
); \
+ la x
5
, tdat; \
+ lhu x2, 0(x
5
); \
li x2, 2; \
)
TEST_CASE( 19, x2, 2, \
li x2, 2; \
)
TEST_CASE( 19, x2, 2, \
- la x
3
, tdat; \
- lhu x2, 0(x
3
); \
+ la x
5
, tdat; \
+ lhu x2, 0(x
5
); \
nop; \
li x2, 2; \
)
nop; \
li x2, 2; \
)