Fix CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll
authorChris Lattner <sabre@nondot.org>
Wed, 28 Jun 2006 18:29:47 +0000 (18:29 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Jun 2006 18:29:47 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28965 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 41c1193b02775f7dd02e628a8ca1a7340d827a48..f0c61e77a94d1f7e650ca31148de0ced2333c023 100644 (file)
@@ -243,12 +243,10 @@ ISD::CondCode ISD::getSetCCAndOperation(ISD::CondCode Op1, ISD::CondCode Op2,
   if (isInteger) {
     switch (Result) {
     default: break;
-    case ISD::SETUO:   // e.g. SETUGT & SETULT
-      Result = ISD::SETFALSE;
-      break;
-    case ISD::SETUEQ:  // e.g. SETUGE & SETULE
-      Result = ISD::SETEQ;
-      break;
+    case ISD::SETUO : Result = ISD::SETFALSE; break;  // SETUGT & SETULT
+    case ISD::SETUEQ: Result = ISD::SETEQ   ; break;  // SETUGE & SETULE
+    case ISD::SETOLT: Result = ISD::SETULT  ; break;  // SETULT & SETNE
+    case ISD::SETOGT: Result = ISD::SETUGT  ; break;  // SETUGT & SETNE
     }
   }