SELECT_CC lowering

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75948 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp
index 335d460..9734709 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -239,3 +239,32 @@
 
   return 0;
 }
+
+const TargetInstrDesc&
+SystemZInstrInfo::getBrCond(SystemZCC::CondCodes CC) const {
+  unsigned Opc;
+  switch (CC) {
+  default:
+    assert(0 && "Unknown condition code!");
+  case SystemZCC::E:
+    Opc = SystemZ::JE;
+    break;
+  case SystemZCC::NE:
+    Opc = SystemZ::JNE;
+    break;
+  case SystemZCC::H:
+    Opc = SystemZ::JH;
+    break;
+  case SystemZCC::L:
+    Opc = SystemZ::JL;
+    break;
+  case SystemZCC::HE:
+    Opc = SystemZ::JHE;
+    break;
+  case SystemZCC::LE:
+    Opc = SystemZ::JLE;
+    break;
+  }
+
+  return get(Opc);
+}