brintos

brintos / llvm-project-archived public Read only

0
0
Text · 542 B · ed65f79 Raw
20 lines · plain
1; RUN: llc -tailcallopt -mcpu=core < %s | FileCheck %s2 3target triple = "i686-apple-darwin"4 5declare fastcc void @foo(i32, i32, i32, i32, i32, i32)6declare ptr @bar(ptr)7 8define fastcc void @hoge(i32 %b) nounwind {9; Do not overwrite pushed callee-save registers10; CHECK: pushl11; CHECK: subl $[[SIZE:[0-9]+]], %esp12; CHECK-NOT: [[SIZE]](%esp)13  %a = alloca i3214  store i32 0, ptr %a15  %d = tail call ptr @bar(ptr %a) nounwind16  store i32 %b, ptr %d17  tail call fastcc void @foo(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6) nounwind18  ret void19}20