https://bugs.llvm.org/show_bug.cgi?id=43866
Bug ID: 43866
Summary: [X86] Cannot select v4f64 = vector_shuffle
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The attached IR causes an ICE when compiled with the latest llc for an X86
target:
$ llc test.ll
LLVM ERROR: Cannot select: t53: v4f64 = vector_shuffle<0,1,0,1> t51,
undef:v4f64
t51: v4f64 = bitcast t72
t72: v8i32 = BUILD_VECTOR undef:i32, Constant:i32<-1>, undef:i32,
undef:i32, undef:i32, undef:i32, undef:i32, undef:i32
t9: i32 = undef
t5: i32 = Constant<-1>
t9: i32 = undef
t9: i32 = undef
t9: i32 = undef
t9: i32 = undef
t9: i32 = undef
t9: i32 = undef
t52: v4f64 = undef
In function: test
It seems it's caused by
==============================================
commit 30837abd9623bf2c8582627d2179828ecf361965
Author: Craig Topper <[email protected]>
Date: Sun Sep 8 19:24:29 2019 +0000
[X86] Teach materializeVectorConstant to not call
getZeroVector/getOnesVector on the types we already have isel patterns for.
llvm-svn: 371343
==============================================
The .ll file was generated (and then hand-reduced) with
clang version 10.0.0 ([email protected]:llvm/llvm-project.git 30837abd9623b...)
from the following C source:
typedef unsigned __attribute__((ext_vector_type(2))) uint2;
typedef unsigned __attribute__((ext_vector_type(8))) uint8;
uint2 v2_0;
void test()
{
uint2 v2_1 = {1, 1};
uint2 v2_2 = (uint2)(v2_0 || v2_1);
volatile uint8 v8_0 = __builtin_shufflevector(v2_0, v2_2, 1, 3, 0, 0, 3,
3, 2, 2);
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs