summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll b/llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll
index 77efffb6358a..d9c2a8cff312 100644
--- a/llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll
+++ b/llvm/test/CodeGen/RISCV/hoist-global-addr-base.ll
@@ -306,8 +306,8 @@ define void @self_store() {
; RV32-LABEL: self_store:
; RV32: # %bb.0:
; RV32-NEXT: lui a0, %hi(f)
-; RV32-NEXT: addi a1, a0, %lo(f)
-; RV32-NEXT: sw a1, %lo(f+4)(a0)
+; RV32-NEXT: addi a0, a0, %lo(f)
+; RV32-NEXT: sw a0, 4(a0)
; RV32-NEXT: ret
;
; RV64-LABEL: self_store: