1 ; RUN: llc < %s -mcpu=generic -mtriple=i386-linux | FileCheck %s -check-prefix=LINUX-I386 2 ; RUN: llc < %s -mcpu=generic -mtriple=i386-kfreebsd | FileCheck %s -check-prefix=KFREEBSD-I386 3 ; RUN: llc < %s -mcpu=generic -mtriple=i386-netbsd | FileCheck %s -check-prefix=NETBSD-I386 4 ; RUN: llc < %s -mcpu=generic -mtriple=i686-apple-darwin8 | FileCheck %s -check-prefix=DARWIN-I386 5 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux | FileCheck %s -check-prefix=LINUX-X86_64 6 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-kfreebsd | FileCheck %s -check-prefix=KFREEBSD-X86_64 7 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-netbsd | FileCheck %s -check-prefix=NETBSD-X86_64 8 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin8 | FileCheck %s -check-prefix=DARWIN-X86_64 9 10 define i32 @test() nounwind { 11 entry: 12 call void @test2() 13 ret i32 0 14 15 ; LINUX-I386: subl $12, %esp 16 ; KFREEBSD-I386: subl $12, %esp 17 ; DARWIN-I386: subl $12, %esp 18 ; NETBSD-I386-NOT: subl {{.*}}, %esp 19 20 ; LINUX-X86_64: pushq %{{.*}} 21 ; LINUX-X86_64-NOT: subq {{.*}}, %rsp 22 ; DARWIN-X86_64: pushq %{{.*}} 23 ; DARWIN-X86_64-NOT: subq {{.*}}, %rsp 24 ; NETBSD-X86_64: pushq %{{.*}} 25 ; NETBSD-X86_64-NOT: subq {{.*}}, %rsp 26 ; KFREEBSD-X86_64: pushq %{{.*}} 27 ; KFREEBSD-X86_64-NOT: subq {{.*}}, %rsp 28 } 29 30 declare void @test2() 31