Avoid x3 (gp), which is now TESTNUM
[riscv-tests.git] / isa / rv64ui / jal.S
index f7f299d210277694f5a9056db6eb1ef770386c53..00c65d8add5a2669186f25301a37996e677f96d2 100644 (file)
@@ -21,7 +21,7 @@ test_2:
   li  TESTNUM, 2
   li  ra, 0
 
-  jal x3, target_2
+  jal x4, target_2
 linkaddr_2:
   nop
   nop
@@ -30,7 +30,7 @@ linkaddr_2:
 
 target_2:
   la  x2, linkaddr_2
-  bne x2, x3, fail
+  bne x2, x4, fail
 
   #-------------------------------------------------------------
   # Test delay slot instructions not executed nor bypassed