[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / hidden-vis-4.ll
1 ; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s
2
3 @x = common hidden global i32 0         ; <i32*> [#uses=1]
4
5 define i32 @t() nounwind readonly {
6 entry:
7 ; CHECK-LABEL: t:
8 ; CHECK: movl _x, %eax
9 ; CHECK: .comm _x,4
10         %0 = load i32, i32* @x, align 4         ; <i32> [#uses=1]
11         ret i32 %0
12 }