summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-25 22:26:02 +0000
committerChris Lattner <sabre@nondot.org>2006-05-25 22:26:02 +0000
commitdc1614d93e93c5ef40bccc587eb08453bd9e12c6 (patch)
tree0d1345a982c68c2e5f3cd9fb493c91eec8eb41b9 /llvm/lib/Target/Sparc
parent29f805ec65be999b2cd3c4ca696e134ee6421a1c (diff)
downloadbcm5719-llvm-dc1614d93e93c5ef40bccc587eb08453bd9e12c6.tar.gz
bcm5719-llvm-dc1614d93e93c5ef40bccc587eb08453bd9e12c6.zip
Add support for the missing FP condition codes
llvm-svn: 28482
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index c5ad35ac12b..b5eafaa144a 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -75,12 +75,18 @@ static SPCC::CondCodes IntCondCCodeToICC(ISD::CondCode CC) {
static SPCC::CondCodes FPCondCCodeToFCC(ISD::CondCode CC) {
switch (CC) {
default: assert(0 && "Unknown fp condition code!");
- case ISD::SETEQ: return SPCC::FCC_E;
- case ISD::SETNE: return SPCC::FCC_NE;
- case ISD::SETLT: return SPCC::FCC_L;
- case ISD::SETGT: return SPCC::FCC_G;
- case ISD::SETLE: return SPCC::FCC_LE;
- case ISD::SETGE: return SPCC::FCC_GE;
+ case ISD::SETEQ:
+ case ISD::SETOEQ: return SPCC::FCC_E;
+ case ISD::SETNE:
+ case ISD::SETUNE: return SPCC::FCC_NE;
+ case ISD::SETLT:
+ case ISD::SETOLT: return SPCC::FCC_L;
+ case ISD::SETGT:
+ case ISD::SETOGT: return SPCC::FCC_G;
+ case ISD::SETLE:
+ case ISD::SETOLE: return SPCC::FCC_LE;
+ case ISD::SETGE:
+ case ISD::SETOGE: return SPCC::FCC_GE;
case ISD::SETULT: return SPCC::FCC_UL;
case ISD::SETULE: return SPCC::FCC_ULE;
case ISD::SETUGT: return SPCC::FCC_UG;
OpenPOWER on IntegriCloud