xref: /llvm-project/llvm/test/CodeGen/X86/2009-03-25-TestBug.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s
2; rdar://6661955
3
4; CHECK-NOT: and
5; CHECK-NOT: shr
6
7@hello = internal constant [7 x i8] c"hello\0A\00"
8@world = internal constant [7 x i8] c"world\0A\00"
9
10define void @func(ptr %b) nounwind {
11bb1579.i.i:		; preds = %bb1514.i.i, %bb191.i.i
12	%tmp176 = load i32, ptr %b, align 4
13	%tmp177 = and i32 %tmp176, 2
14	%tmp178 = icmp eq i32 %tmp177, 0
15        br i1 %tmp178, label %hello, label %world
16
17hello:
18	%h = tail call i32 (ptr, ...) @printf( ptr @hello)
19        ret void
20
21world:
22	%w = tail call i32 (ptr, ...) @printf( ptr @world)
23        ret void
24}
25
26declare i32 @printf(ptr, ...) nounwind
27