Skip to content

Commit a0de0b4

Browse files
phoebewangtru
authored andcommitted
[X86][BF16] Add test coverage for AVX-NE-CONVERT
Split from D158952. (cherry picked from commit 30ec947)
1 parent dc2d2f9 commit a0de0b4

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
@@ -11360,7 +11360,8 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
1136011360
if (VT.getVectorElementType() == MVT::i1 && Subtarget.hasAVX512())
1136111361
return LowerBUILD_VECTORvXi1(Op, DAG, Subtarget);
1136211362

11363-
if (VT.getVectorElementType() == MVT::bf16 && Subtarget.hasBF16())
11363+
if (VT.getVectorElementType() == MVT::bf16 &&
11364+
(Subtarget.hasAVXNECONVERT() || Subtarget.hasBF16()))
1136411365
return LowerBUILD_VECTORvXbf16(Op, DAG, Subtarget);
1136511366

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

0 commit comments

Comments
 (0)