brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 4302add Raw
32 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -no-integrated-as | FileCheck %s2 3define void @foo() nounwind ssp {4entry:5; CHECK: foo6; CHECK: pushq7; CHECK: int $38  call void asm sideeffect alignstack "# top of block", "~{dirflag},~{fpsr},~{flags},~{edi},~{esi},~{edx},~{ecx},~{eax}"() nounwind9  call void asm sideeffect alignstack ".file \22small.c\22", "~{dirflag},~{fpsr},~{flags}"() nounwind10  call void asm sideeffect alignstack ".line 3", "~{dirflag},~{fpsr},~{flags}"() nounwind11  call void asm sideeffect alignstack "int $$3", "~{dirflag},~{fpsr},~{flags},~{memory}"() nounwind12  br label %return13 14return:                                           ; preds = %entry15  ret void16}17 18define void @bar() nounwind ssp {19entry:20; CHECK: bar21; CHECK-NOT: pushq22; CHECK: int $323  call void asm sideeffect "# top of block", "~{dirflag},~{fpsr},~{flags},~{edi},~{esi},~{edx},~{ecx},~{eax}"() nounwind24  call void asm sideeffect ".file \22small.c\22", "~{dirflag},~{fpsr},~{flags}"() nounwind25  call void asm sideeffect ".line 3", "~{dirflag},~{fpsr},~{flags}"() nounwind26  call void asm sideeffect "int $$3", "~{dirflag},~{fpsr},~{flags},~{memory}"() nounwind27  br label %return28 29return:                                           ; preds = %entry30  ret void31}32