brintos

brintos / llvm-project-archived public Read only

0
0
Text · 634 B · eae5697 Raw
27 lines · plain
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s2; rdar://66619553 4; CHECK-NOT: and5; CHECK-NOT: shr6 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.i12	%tmp176 = load i32, ptr %b, align 413	%tmp177 = and i32 %tmp176, 214	%tmp178 = icmp eq i32 %tmp177, 015        br i1 %tmp178, label %hello, label %world16 17hello:18	%h = tail call i32 (ptr, ...) @printf( ptr @hello)19        ret void20 21world:22	%w = tail call i32 (ptr, ...) @printf( ptr @world)23        ret void24}25 26declare i32 @printf(ptr, ...) nounwind27