xref: /llvm-project/llvm/test/CodeGen/AArch64/arm64-dead-def-frame-index.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc < %s -mtriple=arm64-apple-ios7.0.0 | FileCheck %s
2
3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4
5; Function Attrs: nounwind ssp uwtable
6define i32 @test1() #0 {
7  %tmp1 = alloca i8
8  %tmp2 = alloca i32, i32 4096
9  %tmp3 = icmp eq ptr %tmp1, null
10  %tmp4 = zext i1 %tmp3 to i32
11
12  ret i32 %tmp4
13
14  ; CHECK-LABEL: test1
15  ; CHECK:   adds [[TEMP:[a-z0-9]+]], sp, #4, lsl #12
16  ; CHECK:   adds [[TEMP]], [[TEMP]], #15
17}
18