llvm.org GIT mirror llvm / 63edf03
test1 is miscompiled git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32086 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret int -1' &&
1 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret uint 1'
2
3 int %test1() {
4 %A = sext bool true to int
5 ret int %A
6 }
7
8 uint %test2() {
9 %A = zext bool true to uint
10 ret uint %A
11 }
12