summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-02-04 04:15:10 +0000
committerCraig Topper <craig.topper@intel.com>2019-02-04 04:15:10 +0000
commit7a2944efe118e58d164c16c9d8f4d4d626a9f11d (patch)
tree3f3a5461a1142d8301fa7a153ce4266d5dca0fcf /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent145ccb0eb956702eb6aa6cb44b16a675551772d3 (diff)
downloadbcm5719-llvm-7a2944efe118e58d164c16c9d8f4d4d626a9f11d.tar.gz
bcm5719-llvm-7a2944efe118e58d164c16c9d8f4d4d626a9f11d.zip
[X86] Print %st(0) as %st when its implicit to the instruction. Continue printing it as %st(0) when its encoded in the instruction.
This is a step back from the change I made in r352985. This appears to be more consistent with gcc and objdump behavior. llvm-svn: 353015
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index b804207a19e..f7f7966075a 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -841,6 +841,7 @@ OperandType RecognizableInstr::typeFromString(const std::string &s,
TYPE("f32mem", TYPE_M)
TYPE("ssmem", TYPE_M)
TYPE("RST", TYPE_ST)
+ TYPE("RSTi", TYPE_ST)
TYPE("i128mem", TYPE_M)
TYPE("i256mem", TYPE_M)
TYPE("i512mem", TYPE_M)
@@ -963,6 +964,7 @@ OperandEncoding
RecognizableInstr::rmRegisterEncodingFromString(const std::string &s,
uint8_t OpSize) {
ENCODING("RST", ENCODING_FP)
+ ENCODING("RSTi", ENCODING_FP)
ENCODING("GR16", ENCODING_RM)
ENCODING("GR32", ENCODING_RM)
ENCODING("GR32orGR64", ENCODING_RM)
OpenPOWER on IntegriCloud