[llvm-branch-commits] [llvm] 7f25508 - [RISCV] Clean up stack-protector-target test

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 16 00:50:31 PST 2023


Author: Roland McGrath
Date: 2023-02-16T09:48:40+01:00
New Revision: 7f255080a6cde7fd1cb30b67b9ffb8255c32a4b0

URL: https://github.com/llvm/llvm-project/commit/7f255080a6cde7fd1cb30b67b9ffb8255c32a4b0
DIFF: https://github.com/llvm/llvm-project/commit/7f255080a6cde7fd1cb30b67b9ffb8255c32a4b0.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 cd5afe3467af..410b89df1f35 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-branch-commits mailing list