diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-07 01:27:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-07 01:27:55 +0000 |
commit | 29434364dd7d66f335d868b7daadc1b5dcf290fb (patch) | |
tree | 41913b3f3908f9eba70ee1688d5d921aac59d8e7 /utils | |
parent | d9a7f4db5f996cce8b3a7f95f8dbac3c996a6625 (diff) | |
download | external_llvm-29434364dd7d66f335d868b7daadc1b5dcf290fb.zip external_llvm-29434364dd7d66f335d868b7daadc1b5dcf290fb.tar.gz external_llvm-29434364dd7d66f335d868b7daadc1b5dcf290fb.tar.bz2 |
emit TIED_TO correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index aaf21b5..440e7c6 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -297,7 +297,7 @@ static std::string ParseConstraint(const std::string &CStr, throw "Illegal tied-to operand constraint '" + CStr + "'"; // Build the string. - return "((" + utostr(TIdx) + " << 16) | TargetInstrInfo::TIED_TO)"; + return "((" + utostr(TIdx) + " << 16) | (1 << TargetInstrInfo::TIED_TO))"; } static void ParseConstraints(const std::string &CStr, CodeGenInstruction *I) { @@ -408,7 +408,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) // For backward compatibility: isTwoAddress means operand 1 is tied to // operand 0. if (isTwoAddress && OperandList[1].Constraint.empty()) - OperandList[1].Constraint = "((0 << 16) | TargetInstrInfo::TIED_TO)"; + OperandList[1].Constraint = "((0 << 16) | (1 << TargetInstrInfo::TIED_TO))"; // Any operands with unset constraints get 0 as their constraint. for (unsigned op = 0, e = OperandList.size(); op != e; ++op) |