|
1 | 1 | # RUN: llc -mtriple=aarch64 -run-pass=prologepilog %s -o - | FileCheck %s |
2 | 2 | --- | |
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() { |
10 | 4 | entry: |
11 | 5 | %array = alloca [1073741824 x i32], align 4 |
12 | 6 | %arrayidx = getelementptr inbounds [1073741824 x i32], ptr %array, i64 0, i64 20 |
|
17 | 11 | ret i32 %0 |
18 | 12 | } |
19 | 13 |
|
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() |
24 | 15 | ... |
25 | 16 | --- |
26 | 17 | name: _Z4funcv |
@@ -49,7 +40,7 @@ body: | |
49 | 40 | BL @_Z5func2v, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp |
50 | 41 | ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp |
51 | 42 | 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 |
53 | 44 | RET_ReallyLR implicit killed $w0 |
54 | 45 |
|
55 | 46 | ... |
0 commit comments