blob: 2474132d355c68d11df7c451c04d1a9d000f12a3 [file] [log] [blame]
Reid Spencer4953e922007-04-14 23:04:54 +00001; 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}
Chris Lattner63edf032006-12-01 19:50:04 +00005
6int %test1() {
7 %A = sext bool true to int
8 ret int %A
9}
10
11uint %test2() {
12 %A = zext bool true to uint
13 ret uint %A
14}
15