X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ui%2Fsh.S;h=ea9eb2388ff12de8f971e644f49456badb0863e6;hb=96ef658f1fce0f1b4cce468ad7fa3ff453b9ebac;hp=10897d432857bb6135376bd596cef2ede46f858c;hpb=33a1beb24e65c32aa8e2f2547da27eb3e24c4cc9;p=riscv-tests.git diff --git a/isa/rv64ui/sh.S b/isa/rv64ui/sh.S index 10897d4..ea9eb23 100644 --- a/isa/rv64ui/sh.S +++ b/isa/rv64ui/sh.S @@ -31,23 +31,23 @@ RVTEST_CODE_BEGIN # Test with a negative base - TEST_CASE( 10, x3, 0x5678, \ + TEST_CASE( 10, x5, 0x5678, \ la x1, tdat9; \ li x2, 0x12345678; \ addi x4, x1, -32; \ sh x2, 32(x4); \ - lh x3, 0(x1); \ + lh x5, 0(x1); \ ) # Test with unaligned base - TEST_CASE( 11, x3, 0x3098, \ + TEST_CASE( 11, x5, 0x3098, \ la x1, tdat9; \ li x2, 0x00003098; \ addi x1, x1, -5; \ sh x2, 7(x1); \ la x4, tdat10; \ - lh x3, 0(x4); \ + lh x5, 0(x4); \ ) #-------------------------------------------------------------