mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Teach SelectionDAG to match more calls to libm functions onto existing SDNodes. Mark these nodes as illegal by default, unless the target declares otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -103,6 +103,13 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
|
||||
// from FP_ROUND: that rounds to nearest, this rounds to zero.
|
||||
setOperationAction(ISD::FP_ROUND_INREG, MVT::ppcf128, Custom);
|
||||
|
||||
// We do not currently implment this libm ops for PowerPC.
|
||||
setOperationAction(ISD::FFLOOR, MVT::ppcf128, Expand);
|
||||
setOperationAction(ISD::FCEIL, MVT::ppcf128, Expand);
|
||||
setOperationAction(ISD::FTRUNC, MVT::ppcf128, Expand);
|
||||
setOperationAction(ISD::FRINT, MVT::ppcf128, Expand);
|
||||
setOperationAction(ISD::FNEARBYINT, MVT::ppcf128, Expand);
|
||||
|
||||
// PowerPC has no SREM/UREM instructions
|
||||
setOperationAction(ISD::SREM, MVT::i32, Expand);
|
||||
setOperationAction(ISD::UREM, MVT::i32, Expand);
|
||||
|
Reference in New Issue
Block a user