Fix the semantic of Requires<[cond]> to mean if (!cond) goto PXXFail;
authorEvan Cheng <evan.cheng@apple.com>
Tue, 20 Dec 2005 20:08:01 +0000 (20:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 20 Dec 2005 20:08:01 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24883 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 25afc49dd7639254c6c7f4d054cdbe1a5178d824..80f226cd79fc6a689af16ca045f0c530a33ea5eb 100644 (file)
@@ -1803,7 +1803,7 @@ public:
               OS << "      if (";
             else
               OS << " && ";
-            OS << "(" << Def->getValueAsString("CondString") << ")";
+            OS << "!(" << Def->getValueAsString("CondString") << ")";
             if (i == e-1)
               OS << ") goto P" << PatternNo << "Fail;\n";
           } else {