diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-04-01 17:52:07 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-04-01 17:52:07 +0000 |
commit | f6d45f237977a35291c280826e968e03c9530a30 (patch) | |
tree | 82c1d172582decaaad14fa9cab4fa9f26ac462c7 /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | c105ba19e93c52a2f378913e85a414722f036337 (diff) | |
download | bcm5719-llvm-f6d45f237977a35291c280826e968e03c9530a30.tar.gz bcm5719-llvm-f6d45f237977a35291c280826e968e03c9530a30.zip |
Add more PPC floating-point conversion instructions
The P7 and A2 have additional floating-point conversion instructions which
allow a direct two-instruction sequence (plus load/store) to convert from all
combinations (signed/unsigned i32/i64) <--> (float/double) (on previous cores,
only some combinations were directly available).
llvm-svn: 178480
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 3958bc9c006..d5dfa1e8e14 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -80,6 +80,7 @@ protected: bool HasSTFIWX; bool HasLFIWAX; bool HasFPRND; + bool HasFPCVT; bool HasISEL; bool HasPOPCNTD; bool HasLDBRX; @@ -161,6 +162,7 @@ public: bool hasSTFIWX() const { return HasSTFIWX; } bool hasLFIWAX() const { return HasLFIWAX; } bool hasFPRND() const { return HasFPRND; } + bool hasFPCVT() const { return HasFPCVT; } bool hasAltivec() const { return HasAltivec; } bool hasQPX() const { return HasQPX; } bool hasMFOCRF() const { return HasMFOCRF; } |