mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Fix three bugs:
1) evaluate [v]fcmp true/false with undefs to true or false instead of undef. 2) fix vector comparisons with undef to return a vector result instead of i1 3) fix vector comparisons with evaluatable results to return vector true/false instead of i1 true/false (PR2529) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
14
test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
Normal file
14
test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
Normal file
@@ -0,0 +1,14 @@
|
||||
; RUN: llvm-as < %s | opt -constprop | llvm-dis
|
||||
; PR2529
|
||||
define <4 x i32> @test1(i32 %argc, i8** %argv) {
|
||||
entry:
|
||||
%foo = vicmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
|
||||
ret <4 x i32> %foo
|
||||
}
|
||||
|
||||
define <4 x i32> @main(i32 %argc, i8** %argv) {
|
||||
entry:
|
||||
%foo = vicmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
|
||||
undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
|
||||
ret <4 x i32> %foo
|
||||
}
|
Reference in New Issue
Block a user