X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ui%2Flh.S;h=338ed69bcf974a51114f4f6bd3e1f2a65c0120a4;hb=b747a10a7dd789620ebcde2197581ef8bf0fda33;hp=decacdab2eb159368857891ba991ea096967de7c;hpb=160bdaa323bc8f8e651f9f546822336cf17d92f5;p=riscv-tests.git diff --git a/isa/rv64ui/lh.S b/isa/rv64ui/lh.S index decacda..338ed69 100644 --- a/isa/rv64ui/lh.S +++ b/isa/rv64ui/lh.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; \ - lh x3, 32(x1); \ + lh x5, 32(x1); \ ) # Test with unaligned base - TEST_CASE( 11, x3, 0xffffffffffffff00, \ + TEST_CASE( 11, x5, 0xffffffffffffff00, \ la x1, tdat; \ addi x1, x1, -5; \ - lh x3, 7(x1); \ + lh x5, 7(x1); \ ) #------------------------------------------------------------- @@ -62,14 +62,14 @@ RVTEST_CODE_BEGIN #------------------------------------------------------------- TEST_CASE( 18, x2, 2, \ - la x3, tdat; \ - lh x2, 0(x3); \ + la x5, tdat; \ + lh x2, 0(x5); \ li x2, 2; \ ) TEST_CASE( 19, x2, 2, \ - la x3, tdat; \ - lh x2, 0(x3); \ + la x5, tdat; \ + lh x2, 0(x5); \ nop; \ li x2, 2; \ )