1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00

test1 is miscompiled

llvm-svn: 32086
This commit is contained in:
Chris Lattner 2006-12-01 19:50:04 +00:00
parent 55ad52f156
commit f6a48f7ea5

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
}