Skip to content

Commit

Permalink
[RISCV] Clean up stack-protector-target test
Browse files Browse the repository at this point in the history
Add some missed polish from https://reviews.llvm.org/D143355.

Reviewed By: jrtc27

Differential Revision: https://reviews.llvm.org/D143360
  • Loading branch information
frobtech committed Feb 7, 2023
1 parent e403fd8 commit 2406f3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llvm/test/CodeGen/RISCV/stack-protector-target.ll
Expand Up @@ -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
Expand All @@ -25,7 +23,7 @@ define void @func() sspreq {
; FUCHSIA-RISCV64-NEXT: .LBB0_2: # %CallStackCheckFailBlk
; FUCHSIA-RISCV64-NEXT: call __stack_chk_fail@plt
%1 = alloca i32, align 4
call void @capture(ptr nonnull %1)
call void @capture(ptr %1)
ret void
}

Expand Down

0 comments on commit 2406f3b

Please sign in to comment.