mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-04 05:17:07 +00:00
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
15 lines
441 B
LLVM
15 lines
441 B
LLVM
; 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
|
|
}
|