[llvm-bugs] [Bug 43866] New: [X86] Cannot select v4f64 = vector_shuffle
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 31 14:57:00 PDT 2019
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: unassignedbugs at nondot.org
Reporter: Wolfgang_Pieb at playstation.sony.com
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, spatel+llvm at rotateright.com
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 <craig.topper at intel.com>
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 (git at github.com: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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191031/425c4568/attachment.html>
More information about the llvm-bugs
mailing list