Add PPC FP rounding instructions fri[mnpz]

These instructions are available on the P5x (and later) and on the A2. They
implement the standard floating-point rounding operations (floor, trunc, etc.).
One caveat: frin (round to nearest) does not implement "ties to even", and so
is only enabled in fast-math mode.

llvm-svn: 178337
This commit is contained in:
Hal Finkel
2013-03-29 08:57:48 +00:00
parent 703a9870a2
commit c20a08d25b
7 changed files with 190 additions and 30 deletions

View File

@@ -39,6 +39,7 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
, HasQPX(false)
, HasFSQRT(false)
, HasSTFIWX(false)
, HasFPRND(false)
, HasISEL(false)
, HasPOPCNTD(false)
, HasLDBRX(false)