summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-30 18:13:10 +0000
committerChris Lattner <sabre@nondot.org>2010-10-30 18:13:10 +0000
commit4d9f15720343585aa7c60705e828a7af647af97b (patch)
tree9c10814d07e07283a9eefc3dab63571f3104dba6 /llvm/lib/Target
parent069132311aaac00985b1b419f56cece01f13a002 (diff)
downloadbcm5719-llvm-4d9f15720343585aa7c60705e828a7af647af97b.tar.gz
bcm5719-llvm-4d9f15720343585aa7c60705e828a7af647af97b.zip
fix an encoding mismatch where "sal %eax, 1" was not using the short encoding
for shl. Caught by inspection. llvm-svn: 117820
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 8a7cdc788ab..e92441682cf 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -783,7 +783,7 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
// FIXME: Hack to handle recognize s{hr,ar,hl} $1, <op>. Canonicalize to
// "shift <op>".
if ((Name.startswith("shr") || Name.startswith("sar") ||
- Name.startswith("shl")) &&
+ Name.startswith("shl") || Name.startswith("sal")) &&
Operands.size() == 3) {
X86Operand *Op1 = static_cast<X86Operand*>(Operands[1]);
if (Op1->isImm() && isa<MCConstantExpr>(Op1->getImm()) &&
OpenPOWER on IntegriCloud