summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-04-07 21:42:19 +0000
committerSean Callanan <scallanan@apple.com>2010-04-07 21:42:19 +0000
commit5edca8162623b742282f5f03b0872ac3469b5bed (patch)
treecbcf2dec19ee024c1bf4efaefaac581b8364d771 /utils
parentc22e2fcf72780b4b66a4262c12208c2d5af2e213 (diff)
downloadllvm-5edca8162623b742282f5f03b0872ac3469b5bed.tar.gz
llvm-5edca8162623b742282f5f03b0872ac3469b5bed.tar.bz2
llvm-5edca8162623b742282f5f03b0872ac3469b5bed.tar.xz
Fixed a bug where the disassembler would allow an immediate
argument that had to be between 0 and 7 to have any value, firing an assert later in the AsmPrinter. Now, the disassembler rejects instructions with out-of-range values for that immediate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/X86RecognizableInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp
index d71252caf2..b15db2fab0 100644
--- a/utils/TableGen/X86RecognizableInstr.cpp
+++ b/utils/TableGen/X86RecognizableInstr.cpp
@@ -820,7 +820,7 @@ OperandType RecognizableInstr::typeFromString(const std::string &s,
TYPE("i128mem", TYPE_M128)
TYPE("i64i32imm_pcrel", TYPE_REL64)
TYPE("i32imm_pcrel", TYPE_REL32)
- TYPE("SSECC", TYPE_IMM8)
+ TYPE("SSECC", TYPE_IMM3)
TYPE("brtarget", TYPE_RELv)
TYPE("brtarget8", TYPE_REL8)
TYPE("f80mem", TYPE_M80FP)