[llvm] [RISCV] Correct comments in rv64-stackmap.ll to not use X86 register name. NFC (PR #165912)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 12:25:19 PDT 2025
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/165912
NOTE: X86 forces a frame pointer for stackmaps/patchpoint. So they use RBP where we use SP.
>From 310d4a1f2fdb25492230f3dbbfc726e13b82fe11 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Fri, 31 Oct 2025 12:23:54 -0700
Subject: [PATCH] [RISCV] Correct comments in rv64-stackmap.ll to not use X86
register name. NFC
NOTE: X86 forces a frame pointer for stackmaps/patchpoint. So they
use RBP where we use SP.
---
llvm/test/CodeGen/RISCV/rv64-stackmap.ll | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/llvm/test/CodeGen/RISCV/rv64-stackmap.ll b/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
index 9aefa90684dd3..6abd818b0ea0d 100644
--- a/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
+++ b/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
@@ -282,8 +282,8 @@ define void @liveConstant() {
; CHECK-NEXT: .half 0
; CHECK-NEXT: .half 28
;
-; Check that at least one is a spilled entry from RBP.
-; Location: Indirect RBP + ...
+; Check that at least one is a spilled entry from SP.
+; Location: Indirect SP + ...
; CHECK: .byte 3
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .half 8
@@ -303,7 +303,7 @@ entry:
; CHECK-NEXT: .half 0
; 1 location
; CHECK-NEXT: .half 1
-; Loc 0: Direct RBP - ofs
+; Loc 0: Direct SP + ofs
; CHECK-NEXT: .byte 2
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .half 8
@@ -316,14 +316,14 @@ entry:
; CHECK-NEXT: .half 0
; 2 locations
; CHECK-NEXT: .half 2
-; Loc 0: Direct RBP - ofs
+; Loc 0: Direct SP + ofs
; CHECK-NEXT: .byte 2
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .half 8
; CHECK-NEXT: .half 2
; CHECK-NEXT: .half 0
; CHECK-NEXT: .word
-; Loc 1: Direct RBP - ofs
+; Loc 1: Direct SP + ofs
; CHECK-NEXT: .byte 2
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .half 8
More information about the llvm-commits
mailing list