1 ; This is a basic sanity check for constant propogation. It tests the basic
5 ; RUN: llvm-as < %s | opt -sccp | llvm-dis | not grep and
6 ; RUN: llvm-as < %s | opt -sccp | llvm-dis | not grep trunc
7 ; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep {ret i100 -1}
9 define i100 @test(i133 %A) {
11 %C = icmp sgt i133 %B, 0
12 br i1 %C, label %BB1, label %BB2
15 %t4 = trunc i133 %t3 to i100
19 %f2 = lshr i133 %f1, 33
20 %f3 = trunc i133 %f2 to i100
23 %Ret = phi i100 [%t4, %BB1], [%f3, %BB2]