blob: d8e27e9aff6025034a6257812d9bd10d56df25cb [file] [log] [blame]
Chris Lattner2efbbb32008-11-26 00:26:16 +00001; RUN: llvm-as < %s | llc -march=x86 | grep {movzbl.7(%...)}
2; RUN: llvm-as < %s | llc -march=x86 | not grep leal
3
4define 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
10TB:
11 ret i8 4
12F:
13 %U = getelementptr i8* %R, i32 3
14 %V = load i8* %U
15 ret i8 %V
16}