blob: 9d9c747fa49599477e7d5b96ef308d94bf85664a [file] [log] [blame]
Rafael Espindola152932b2009-03-17 23:43:59 +00001; RUN: llvm-as < %s | llc -march=x86 > %t
2; RUN: grep {movb.7(%...)} %t
3; RUN: not grep leal %t
Chris Lattner2efbbb32008-11-26 00:26:16 +00004
5define i8 @test(i32 *%P) nounwind {
6 %Q = getelementptr i32* %P, i32 1
7 %R = bitcast i32* %Q to i8*
8 %S = load i8* %R
9 %T = icmp eq i8 %S, 0
10 br i1 %T, label %TB, label %F
11TB:
12 ret i8 4
13F:
14 %U = getelementptr i8* %R, i32 3
15 %V = load i8* %U
16 ret i8 %V
17}