Add testcase for r63142.
[oota-llvm.git] / test / CodeGen / X86 / isel-sink2.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | grep {movzbl.7(%...)}
2 ; RUN: llvm-as < %s | llc -march=x86 | not grep leal
3
4 define i8 @test(i32 *%P) nounwind {
5   %Q = getelementptr i32* %P, i32 1
6   %R = bitcast i32* %Q to i8*
7   %S = load i8* %R
8   %T = icmp eq i8 %S, 0
9   br i1 %T, label %TB, label %F
10 TB:
11   ret i8 4
12 F:
13   %U = getelementptr i8* %R, i32 3
14   %V = load i8* %U
15   ret i8 %V
16 }