diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-29 08:57:48 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-29 08:57:48 +0000 |
commit | c20a08d25bc02de9ac2c4f85694e680d1b86c67f (patch) | |
tree | ff0363ee8929b308d6930e3be398bd2cde7da074 /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 703a9870a27ab77ee54d227c971ae71453af1070 (diff) | |
download | bcm5719-llvm-c20a08d25bc02de9ac2c4f85694e680d1b86c67f.tar.gz bcm5719-llvm-c20a08d25bc02de9ac2c4f85694e680d1b86c67f.zip |
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
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 36436f6e407..bf5bd844c0c 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -78,6 +78,7 @@ protected: bool HasQPX; bool HasFSQRT; bool HasSTFIWX; + bool HasFPRND; bool HasISEL; bool HasPOPCNTD; bool HasLDBRX; @@ -157,6 +158,7 @@ public: // Specific obvious features. bool hasFSQRT() const { return HasFSQRT; } bool hasSTFIWX() const { return HasSTFIWX; } + bool hasFPRND() const { return HasFPRND; } bool hasAltivec() const { return HasAltivec; } bool hasQPX() const { return HasQPX; } bool hasMFOCRF() const { return HasMFOCRF; } |