blob: 0be3fb12f5adf35642b478b87765219f71da8cfd [file] [log] [blame]
Simon Pilgrimfc4d4b22016-07-19 13:35:11 +00001; RUN: llc < %s -mtriple=arm64-apple-ios7.0.0 | FileCheck %s
Louis Gerbargcfc05452014-04-14 21:05:05 +00002
3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
Louis Gerbargcfc05452014-04-14 21:05:05 +00004
5; Function Attrs: nounwind ssp uwtable
6define i32 @test1() #0 {
7 %tmp1 = alloca i8
8 %tmp2 = alloca i32, i32 4096
9 %tmp3 = icmp eq i8* %tmp1, null
10 %tmp4 = zext i1 %tmp3 to i32
11
12 ret i32 %tmp4
13
14 ; CHECK-LABEL: test1
Tim Northovercfd6e662014-04-30 11:19:15 +000015 ; CHECK: adds [[TEMP:[a-z0-9]+]], sp, #4, lsl #12
Louis Gerbargcfc05452014-04-14 21:05:05 +000016 ; CHECK: adds [[TEMP]], [[TEMP]], #15
17}