brintos

brintos / llvm-project-archived public Read only

0
0
Text · 614 B · a51a902 Raw
21 lines · plain
1; RUN: llc < %s | FileCheck %s2target triple = "arm64-apple-macosx10"3 4; Check that big stacks are generated correctly.5; Currently, this is done by a sequence of sub instructions,6; which can encode immediate with a 12 bits mask an optionally7; shift left (up to 12). I.e., 16773120 is the biggest value.8; <rdar://12513931>9; CHECK-LABEL: foo:10; CHECK: sub sp, sp, #4095, lsl #1211; CHECK: sub sp, sp, #4095, lsl #1212; CHECK: sub sp, sp, #2, lsl #1213define void @foo() nounwind ssp {14entry:15  %buffer = alloca [33554432 x i8], align 116  call void @doit(ptr %buffer) nounwind17  ret void18}19 20declare void @doit(ptr)21