From: Evan Cheng Date: Tue, 20 Dec 2005 20:08:01 +0000 (+0000) Subject: Fix the semantic of Requires<[cond]> to mean if (!cond) goto PXXFail; X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5fb5e10cdce4680c84ab35c2176d2c685129de24;p=oota-llvm.git 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 25afc49dd76..80f226cd79f 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -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 {