Skip to content

Commit e4f9520

Browse files
committed
Assert that custom lowering is only used for vectors, and reorganise tests.
1 parent 0a9a6dd commit e4f9520

File tree

2 files changed

+89
-221
lines changed

2 files changed

+89
-221
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7740,6 +7740,8 @@ SDValue AArch64TargetLowering::LowerFMA(SDValue Op, SelectionDAG &DAG) const {
77407740
EVT VT = Op.getValueType();
77417741
SDLoc DL(Op);
77427742

7743+
assert(VT.isVector() && "Scalar fma lowering should be handled by patterns");
7744+
77437745
// Bail early if we're definitely not looking to merge FNEGs into the FMA.
77447746
if (VT != MVT::v8f16 && VT != MVT::v4f32 && VT != MVT::v2f64)
77457747
return LowerToPredicatedOp(Op, DAG, AArch64ISD::FMA_PRED);

0 commit comments

Comments
 (0)