diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-21 16:46:43 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-21 16:46:43 -0700 |
commit | 96ef658f1fce0f1b4cce468ad7fa3ff453b9ebac (patch) | |
tree | ef6d18dbf4119755c469ed90948839ac6af28bbf /isa/rv64ui/lbu.S | |
parent | 33a1beb24e65c32aa8e2f2547da27eb3e24c4cc9 (diff) | |
download | riscv-tests-96ef658f1fce0f1b4cce468ad7fa3ff453b9ebac.zip riscv-tests-96ef658f1fce0f1b4cce468ad7fa3ff453b9ebac.tar.gz riscv-tests-96ef658f1fce0f1b4cce468ad7fa3ff453b9ebac.tar.bz2 |
Avoid x3 (gp), which is now TESTNUM
Diffstat (limited to 'isa/rv64ui/lbu.S')
-rw-r--r-- | isa/rv64ui/lbu.S | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/isa/rv64ui/lbu.S b/isa/rv64ui/lbu.S index 5f4c2fe..adc3a05 100644 --- a/isa/rv64ui/lbu.S +++ b/isa/rv64ui/lbu.S @@ -31,18 +31,18 @@ RVTEST_CODE_BEGIN # Test with a negative base - TEST_CASE( 10, x3, 0x00000000000000ff, \ + TEST_CASE( 10, x5, 0x00000000000000ff, \ la x1, tdat; \ addi x1, x1, -32; \ - lbu x3, 32(x1); \ + lbu x5, 32(x1); \ ) # Test with unaligned base - TEST_CASE( 11, x3, 0x0000000000000000, \ + TEST_CASE( 11, x5, 0x0000000000000000, \ la x1, tdat; \ addi x1, x1, -6; \ - lbu x3, 7(x1); \ + lbu x5, 7(x1); \ ) #------------------------------------------------------------- @@ -62,14 +62,14 @@ RVTEST_CODE_BEGIN #------------------------------------------------------------- TEST_CASE( 18, x2, 2, \ - la x3, tdat; \ - lbu x2, 0(x3); \ + la x5, tdat; \ + lbu x2, 0(x5); \ li x2, 2; \ ) TEST_CASE( 19, x2, 2, \ - la x3, tdat; \ - lbu x2, 0(x3); \ + la x5, tdat; \ + lbu x2, 0(x5); \ nop; \ li x2, 2; \ ) |