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

SDAG failure on AVX512BW/AVX512VL

Open llvmbot opened this issue 11 years ago • 3 comments

Bugzilla Link 25684
Resolution FIXED
Resolved on Sep 14, 2016 03:05
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @igor-breger,@RKSimon

Extended Description

LLVM fails to select instructions for the following IR on AVX512BW/AVX512VL (OK on other AVX512 sets):

define void @​truncate_v16i16_to_v16i8(<16 x i16> %a) { %1 = trunc <16 x i16> %a to <16 x i8> store <16 x i8> %1, <16 x i8>* undef, align 4 ret void }

The error message on AVX512BW:

.section	__TEXT,__text,regular,pure_instructions

LLVM ERROR: Cannot select: t9: ch = store<ST16undef, trunc to v16i8> t0, t2, undef:i64, undef:i64 t2: v16i16,ch = CopyFromReg t0, Register:v16i16 %vreg0 t1: v16i16 = Register %vreg0 t4: i64 = undef t4: i64 = undef In function: truncate_v16i16_to_v16i8

The error message on AVX512VL:

.section	__TEXT,__text,regular,pure_instructions

LLVM ERROR: Cannot select: t6: ch = store<ST16undef> t0, t10, undef:i64, undef:i64 t10: v16i8 = X86ISD::VTRUNC t9 t9: v16i32 = X86ISD::VSEXT t2 t2: v16i16,ch = CopyFromReg t0, Register:v16i16 %vreg0 t1: v16i16 = Register %vreg0 t4: i64 = undef t4: i64 = undef In function: truncate_v16i16_to_v16i8

llvmbot avatar Dec 01 '15 02:12 llvmbot

fixed https://reviews.llvm.org/rL281445

igor-breger avatar Sep 14 '16 10:09 igor-breger

Reopening this as it still doesn't work

RKSimon avatar Sep 13 '16 19:09 RKSimon

work correct with trunk (clang r278653)

igor-breger avatar Aug 15 '16 08:08 igor-breger