[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / alloca-align-rounding-32.ll
1 ; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | FileCheck %s
2
3 declare void @bar(<2 x i64>* %n)
4
5 define void @foo(i32 %h) {
6   %p = alloca <2 x i64>, i32 %h
7   call void @bar(<2 x i64>* %p)
8   ret void
9 ; CHECK: foo
10 ; CHECK-NOT: andl $-32, %eax
11 }
12
13 define void @foo2(i32 %h) {
14   %p = alloca <2 x i64>, i32 %h, align 32
15   call void @bar(<2 x i64>* %p)
16   ret void
17 ; CHECK: foo2
18 ; CHECK: andl $-32, %esp
19 ; CHECK: andl $-32, %e{{..}}
20 }