• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=i386-pc-solaris2.11 | FileCheck %s -check-prefix=SOLARIS-I386
6; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux | FileCheck %s -check-prefix=LINUX-X86_64
7; RUN: llc < %s -mcpu=generic -mtriple=x86_64-kfreebsd | FileCheck %s -check-prefix=KFREEBSD-X86_64
8; RUN: llc < %s -mcpu=generic -mtriple=x86_64-netbsd | FileCheck %s -check-prefix=NETBSD-X86_64
9; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin8 | FileCheck %s -check-prefix=DARWIN-X86_64
10; RUN: llc < %s -mcpu=generic -mtriple=x86_64-pc-solaris2.11 | FileCheck %s -check-prefix=SOLARIS-X86_64
11
12define i32 @test() nounwind {
13entry:
14  call void @test2()
15  ret i32 0
16
17; LINUX-I386:     subl	$12, %esp
18; KFREEBSD-I386:  subl	$12, %esp
19; DARWIN-I386:    subl	$12, %esp
20; NETBSD-I386-NOT:  subl	{{.*}}, %esp
21; SOLARIS-I386-NOT: subl	{{.*}}, %esp
22
23; LINUX-X86_64:      pushq %{{.*}}
24; LINUX-X86_64-NOT:  subq	{{.*}}, %rsp
25; DARWIN-X86_64:     pushq %{{.*}}
26; DARWIN-X86_64-NOT: subq	{{.*}}, %rsp
27; NETBSD-X86_64:     pushq %{{.*}}
28; NETBSD-X86_64-NOT: subq	{{.*}}, %rsp
29; SOLARIS-X86_64:     pushq %{{.*}}
30; SOLARIS-X86_64-NOT: subq	{{.*}}, %rsp
31; KFREEBSD-X86_64:     pushq %{{.*}}
32; KFREEBSD-X86_64-NOT: subq	{{.*}}, %rsp
33}
34
35declare void @test2()
36