[X86][SSE] Improve support for 128-bit vector sign extension
[oota-llvm.git] / test / CodeGen / X86 / stack-align2.ll
1 ; RUN: llc < %s -mcpu=generic -mtriple=i386-linux | FileCheck %s -check-prefix=LINUX-I386
2 ; RUN: llc < %s -mcpu=generic -mtriple=i386-netbsd | FileCheck %s -check-prefix=NETBSD-I386
3 ; RUN: llc < %s -mcpu=generic -mtriple=i686-apple-darwin8 | FileCheck %s -check-prefix=DARWIN-I386
4 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux | FileCheck %s -check-prefix=LINUX-X86_64
5 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-netbsd | FileCheck %s -check-prefix=NETBSD-X86_64
6 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin8 | FileCheck %s -check-prefix=DARWIN-X86_64
7
8 define i32 @test() nounwind {
9 entry:
10   call void @test2()
11   ret i32 0
12
13 ; LINUX-I386:     subl  $12, %esp
14 ; DARWIN-I386:    subl  $12, %esp
15 ; NETBSD-I386-NOT: subl {{.*}}, %esp
16
17 ; LINUX-X86_64:      pushq %{{.*}}
18 ; LINUX-X86_64-NOT:  subq       {{.*}}, %rsp
19 ; DARWIN-X86_64:     pushq %{{.*}}
20 ; DARWIN-X86_64-NOT: subq       {{.*}}, %rsp
21 ; NETBSD-X86_64:     pushq %{{.*}}
22 ; NETBSD-X86_64-NOT: subq       {{.*}}, %rsp
23 }
24
25 declare void @test2()