llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[AVX512F] Can't load/ext <8 x i1> vector

Open RKSimon opened this issue 10 years ago • 3 comments

Bugzilla Link 26474
Resolution FIXED
Resolved on Jun 23, 2016 08:42
Version trunk
OS Windows NT
CC @delena,@hfinkel,@igor-breger,@rotateright

Extended Description

Taken from llvm\test\CodeGen\X86\vector-sext.ll:

define <8 x i16> @​load_sext_8i1_to_8i16(<8 x i1> %ptr) { entry: %X = load <8 x i1>, <8 x i1> %ptr %Y = sext <8 x i1> %X to <8 x i16> ret <8 x i16> %Y }

llc < test.ll -mtriple=x86_64-unknown-unknown -mattr=+avx512f

This action is not supported yet! UNREACHABLE executed at D:\prj\llvm\llvm\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp:912!

RKSimon avatar Feb 04 '16 15:02 RKSimon

This test case works fine. Closing the ticket.

delena avatar Jun 23 '16 15:06 delena

Interestingly this seems to work:

define <8 x i16> @​altload_sext_8i1_to_8i16(i8* %ptr) { entry: %X = load i8, i8* %ptr %Y = bitcast i8 %X to <8 x i1> %Z = sext <8 x i1> %Y to <8 x i16> ret <8 x i16> %Z }

RKSimon avatar Mar 23 '16 01:03 RKSimon

Still broken but the error message now reads:

LLVM ERROR: Cannot select: 0xda5860: v8i1 = bitcast 0xda5780 0xda5780: v1i8 = scalar_to_vector 0xda5710 0xda5710: i8,ch = load<LD1%ptr> 0xaeca90, 0xda5080, undef:i64 0xda5080: i64,ch = CopyFromReg 0xaeca90, Register:i64 %vreg0 0xda5010: i64 = Register %vreg0 0xda5160: i64 = undef In function: load_sext_8i1_to_8i16

RKSimon avatar Mar 23 '16 01:03 RKSimon