Skip to content

Commit 929b5ab

Browse files
committed
Clean up the test case
1 parent 80cc1e5 commit 929b5ab

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

llvm/test/CodeGen/AArch64/aarch64-large-stack-spbump.mir

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# RUN: llc -mtriple=aarch64 -run-pass=prologepilog %s -o - | FileCheck %s
22
--- |
3-
; ModuleID = 'bug.c'
4-
source_filename = "bug.c"
5-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
6-
target triple = "aarch64-unknown-linux-gnu"
7-
8-
; Function Attrs: mustprogress noinline optnone uwtable
9-
define dso_local noundef i32 @_Z4funcv() #0 {
3+
define i32 @_Z4funcv() {
104
entry:
115
%array = alloca [1073741824 x i32], align 4
126
%arrayidx = getelementptr inbounds [1073741824 x i32], ptr %array, i64 0, i64 20
@@ -17,10 +11,7 @@
1711
ret i32 %0
1812
}
1913

20-
declare void @_Z5func2v() #1
21-
22-
attributes #0 = { mustprogress noinline optnone uwtable "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" }
23-
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" }
14+
declare void @_Z5func2v()
2415
...
2516
---
2617
name: _Z4funcv
@@ -49,7 +40,7 @@ body: |
4940
BL @_Z5func2v, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp
5041
ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
5142
renamable $w0 = LDRWui %stack.0.array, 20 :: (dereferenceable load (s32) from %ir.arrayidx1)
52-
; CHECK: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp
43+
; CHECK: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp, 2
5344
RET_ReallyLR implicit killed $w0
5445
5546
...

0 commit comments

Comments
 (0)