Fix a bunch of issues found in a testcase from 400.perlbench.
[oota-llvm.git] / test / Transforms / ConstProp / 2006-12-01-bool-casts.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
2 ; RUN:    grep {ret i32 -1}
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
4 ; RUN:    grep {ret i32 1}
5
6 int %test1() {
7   %A = sext bool true to int
8   ret int %A
9 }
10
11 uint %test2() {
12   %A = zext bool true to uint
13   ret uint %A
14 }
15