1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
2 ; RUN: %prcontext div 1 | grep ret
4 ;; This tests that the instructions in the entry blocks are sunk into each
7 define i32 @foo(i1 %C, i32 %A, i32 %B) {
9 %tmp.2 = sdiv i32 %A, %B ; <i32> [#uses=1]
10 %tmp.9 = add i32 %B, %A ; <i32> [#uses=1]
11 br i1 %C, label %then, label %endif
13 then: ; preds = %entry
16 endif: ; preds = %entry