Skip to content

Commit a3aaae0

Browse files
committed
[X86] Add custom operation actions for f16: FABS, FNEG, and FCOPYSIGN
1 parent bac6e7b commit a3aaae0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
701701
setOperationAction(ISD::FSUB, MVT::f16, Promote);
702702
setOperationAction(ISD::FMUL, MVT::f16, Promote);
703703
setOperationAction(ISD::FDIV, MVT::f16, Promote);
704+
setOperationAction(ISD::FABS, MVT::f16, Custom);
705+
setOperationAction(ISD::FNEG, MVT::f16, Custom);
706+
setOperationAction(ISD::FCOPYSIGN, MVT::f16, Custom);
704707
setOperationAction(ISD::FP_ROUND, MVT::f16, Custom);
705708
setOperationAction(ISD::FP_EXTEND, MVT::f32, Custom);
706709
setOperationAction(ISD::FP_EXTEND, MVT::f64, Custom);

0 commit comments

Comments
 (0)