Fix the semantic of Requires<[cond]> to mean if (!cond) goto PXXFail;


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24883 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 25afc49..80f226c 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -1803,7 +1803,7 @@
               OS << "      if (";
             else
               OS << " && ";
-            OS << "(" << Def->getValueAsString("CondString") << ")";
+            OS << "!(" << Def->getValueAsString("CondString") << ")";
             if (i == e-1)
               OS << ") goto P" << PatternNo << "Fail;\n";
           } else {