blob: b63a3f8ecf7714f5a9f2717609a0ba26c4d11a65 [file] [log] [blame]
Chris Lattner77a62312008-12-25 05:34:37 +00001; RUN: llvm-as < %s | llc | grep btl
Evan Cheng95a77fd2009-01-02 05:35:45 +00002; RUN: llvm-as < %s | llc -mcpu=pentium4 | grep btl | grep esp
3; RUN: llvm-as < %s | llc -mcpu=penryn | grep btl | not grep esp
Chris Lattnerc49419d2008-12-25 05:40:38 +00004; PR3253
Chris Lattner77a62312008-12-25 05:34:37 +00005target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
6target triple = "i386-apple-darwin8"
7
8define void @test2(i32 %x, i32 %n) nounwind {
9entry:
10 %tmp29 = lshr i32 %x, %n ; <i32> [#uses=1]
11 %tmp3 = and i32 %tmp29, 1 ; <i32> [#uses=1]
12 %tmp4 = icmp eq i32 %tmp3, 0 ; <i1> [#uses=1]
13 br i1 %tmp4, label %bb, label %UnifiedReturnBlock
14
15bb: ; preds = %entry
16 call void @foo()
17 ret void
18
19UnifiedReturnBlock: ; preds = %entry
20 ret void
21}
22
23declare void @foo()