Skip to content

Commit 30ec947

Browse files
committed
[X86][BF16] Add test coverage for AVX-NE-CONVERT
Split from D158952.
1 parent b6a1473 commit 30ec947

File tree

2 files changed

+664
-107
lines changed

2 files changed

+664
-107
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8479,7 +8479,8 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
84798479
if (VT.getVectorElementType() == MVT::i1 && Subtarget.hasAVX512())
84808480
return LowerBUILD_VECTORvXi1(Op, DAG, Subtarget);
84818481

8482-
if (VT.getVectorElementType() == MVT::bf16 && Subtarget.hasBF16())
8482+
if (VT.getVectorElementType() == MVT::bf16 &&
8483+
(Subtarget.hasAVXNECONVERT() || Subtarget.hasBF16()))
84838484
return LowerBUILD_VECTORvXbf16(Op, DAG, Subtarget);
84848485

84858486
if (SDValue VectorConstant = materializeVectorConstant(Op, DAG, Subtarget))

0 commit comments

Comments
 (0)