xref: /llvm-project/llvm/test/CodeGen/AArch64/arm64-arm64-dead-def-elimination-flag.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc -debugify-and-strip-all-safe -mtriple=arm64-apple-ios7.0.0 -aarch64-enable-dead-defs=false < %s | 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 = icmp eq ptr %tmp1, null
9  %tmp3 = zext i1 %tmp2 to i32
10
11  ret i32 %tmp3
12
13  ; CHECK-LABEL: test1
14  ; CHECK: adds {{x[0-9]+}}, sp, #15
15}
16