mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
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:
13
test/Transforms/ConstProp/2006-12-01-bool-casts.ll
Normal file
13
test/Transforms/ConstProp/2006-12-01-bool-casts.ll
Normal 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user