mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix PR11948: the result type of an icmp may be a vector of boolean -
don't assume it is a boolean. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -415,3 +415,10 @@ define <2 x i1> @vectorselect1(<2 x i1> %cond) {
|
||||
ret <2 x i1> %c
|
||||
; CHECK: ret <2 x i1> %cond
|
||||
}
|
||||
|
||||
define <2 x i1> @vectorselectcrash(i32 %arg1) { ; PR11948
|
||||
%tobool40 = icmp ne i32 %arg1, 0
|
||||
%cond43 = select i1 %tobool40, <2 x i16> <i16 -5, i16 66>, <2 x i16> <i16 46, i16 1>
|
||||
%cmp45 = icmp ugt <2 x i16> %cond43, <i16 73, i16 21>
|
||||
ret <2 x i1> %cmp45
|
||||
}
|
||||
|
Reference in New Issue
Block a user