[PATCH] D53499: [llvm-exegesis] Mark x86 segment register instructions as unsupported.
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 07:57:57 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344906: [llvm-exegesis] Mark x86 segment register instructions as unsupported. (authored by gchatelet, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D53499
Files:
llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
Index: llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -89,6 +89,12 @@
Op.getExplicitOperandInfo().OperandType == llvm::MCOI::OPERAND_PCREL)
return llvm::make_error<BenchmarkFailure>(
"unsupported opcode: PC relative operand");
+ for (const Operand &Op : Instr.Operands)
+ if (Op.isReg() && Op.isExplicit() &&
+ Op.getExplicitOperandInfo().RegClass ==
+ llvm::X86::SEGMENT_REGRegClassID)
+ return llvm::make_error<BenchmarkFailure>(
+ "unsupported opcode: access segment memory");
// We do not handle second-form X87 instructions. We only handle first-form
// ones (_Fp), see comment in X86InstrFPStack.td.
for (const Operand &Op : Instr.Operands)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53499.170416.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/649000c6/attachment.bin>
More information about the llvm-commits
mailing list