mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[SystemZ] Use FI[EDX]BRA for codegen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -209,6 +209,15 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm)
|
||||
// We can use FI for FRINT.
|
||||
setOperationAction(ISD::FRINT, VT, Legal);
|
||||
|
||||
// We can use the extended form of FI for other rounding operations.
|
||||
if (Subtarget.hasFPExtension()) {
|
||||
setOperationAction(ISD::FNEARBYINT, VT, Legal);
|
||||
setOperationAction(ISD::FFLOOR, VT, Legal);
|
||||
setOperationAction(ISD::FCEIL, VT, Legal);
|
||||
setOperationAction(ISD::FTRUNC, VT, Legal);
|
||||
setOperationAction(ISD::FROUND, VT, Legal);
|
||||
}
|
||||
|
||||
// No special instructions for these.
|
||||
setOperationAction(ISD::FSIN, VT, Expand);
|
||||
setOperationAction(ISD::FCOS, VT, Expand);
|
||||
|
||||
Reference in New Issue
Block a user