test1 is miscompiled

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-12-01 19:50:04 +00:00
parent d52bbdceef
commit 63edf03fe5

View File

@@ -0,0 +1,13 @@
; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret int -1' &&
; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 'ret uint 1'
int %test1() {
%A = sext bool true to int
ret int %A
}
uint %test2() {
%A = zext bool true to uint
ret uint %A
}