From: Evan Cheng Date: Mon, 17 Apr 2006 07:24:10 +0000 (+0000) Subject: FP SETOLT, SETOLT, SETUGE, SETUGT conditions were implemented incorrectly X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5001ea1078e300fab8d26d183249522b4c4edd98;p=oota-llvm.git FP SETOLT, SETOLT, SETUGE, SETUGT conditions were implemented incorrectly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27755 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 38e4614299a..9bdcb039d67 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1238,16 +1238,16 @@ static bool translateX86CC(ISD::CondCode SetCCOpcode, bool isFP, default: break; case ISD::SETUEQ: case ISD::SETEQ: X86CC = X86ISD::COND_E; break; - case ISD::SETOLE: Flip = true; // Fallthrough + case ISD::SETOLT: Flip = true; // Fallthrough case ISD::SETOGT: case ISD::SETGT: X86CC = X86ISD::COND_A; break; - case ISD::SETOLT: Flip = true; // Fallthrough + case ISD::SETOLE: Flip = true; // Fallthrough case ISD::SETOGE: case ISD::SETGE: X86CC = X86ISD::COND_AE; break; - case ISD::SETUGE: Flip = true; // Fallthrough + case ISD::SETUGT: Flip = true; // Fallthrough case ISD::SETULT: case ISD::SETLT: X86CC = X86ISD::COND_B; break; - case ISD::SETUGT: Flip = true; // Fallthrough + case ISD::SETUGE: Flip = true; // Fallthrough case ISD::SETULE: case ISD::SETLE: X86CC = X86ISD::COND_BE; break; case ISD::SETONE: