[llvm] 2406f3b - [RISCV] Clean up stack-protector-target test
Roland McGrath via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 16:43:10 PST 2023
Author: Roland McGrath
Date: 2023-02-06T16:42:59-08:00
New Revision: 2406f3bea5452e959ba627bff53b27e4de9ac7c3
URL: https://github.com/llvm/llvm-project/commit/2406f3bea5452e959ba627bff53b27e4de9ac7c3
DIFF: https://github.com/llvm/llvm-project/commit/2406f3bea5452e959ba627bff53b27e4de9ac7c3.diff
LOG: [RISCV] Clean up stack-protector-target test
Add some missed polish from https://reviews.llvm.org/D143355.
Reviewed By: jrtc27
Differential Revision: https://reviews.llvm.org/D143360
Added:
Modified:
llvm/test/CodeGen/RISCV/stack-protector-target.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/RISCV/stack-protector-target.ll b/llvm/test/CodeGen/RISCV/stack-protector-target.ll
index cd5afe3467afc..410b89df1f35c 100644
--- a/llvm/test/CodeGen/RISCV/stack-protector-target.ll
+++ b/llvm/test/CodeGen/RISCV/stack-protector-target.ll
@@ -4,13 +4,11 @@
;
; RUN: llc -mtriple=riscv64-fuchsia < %s | FileCheck --check-prefix=FUCHSIA-RISCV64 %s
-define void @func() sspreq {
+define void @func() sspreq nounwind {
; FUCHSIA-RISCV64-LABEL: func:
; FUCHSIA-RISCV64: # %bb.0:
; FUCHSIA-RISCV64-NEXT: addi sp, sp, -32
-; FUCHSIA-RISCV64-NEXT: .cfi_def_cfa_offset 32
; FUCHSIA-RISCV64-NEXT: sd ra, 24(sp) # 8-byte Folded Spill
-; FUCHSIA-RISCV64-NEXT: .cfi_offset ra, -8
; FUCHSIA-RISCV64-NEXT: ld a0, -16(tp)
; FUCHSIA-RISCV64-NEXT: sd a0, 16(sp)
; FUCHSIA-RISCV64-NEXT: addi a0, sp, 12
@@ -25,7 +23,7 @@ define void @func() sspreq {
; FUCHSIA-RISCV64-NEXT: .LBB0_2: # %CallStackCheckFailBlk
; FUCHSIA-RISCV64-NEXT: call __stack_chk_fail at plt
%1 = alloca i32, align 4
- call void @capture(ptr nonnull %1)
+ call void @capture(ptr %1)
ret void
}
More information about the llvm-commits
mailing list