[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:56:44 PDT 2018
gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added subscribers: llvm-commits, tschuett.
Repository:
rL LLVM
https://reviews.llvm.org/D53499
Files:
tools/llvm-exegesis/lib/X86/Target.cpp
Index: tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- tools/llvm-exegesis/lib/X86/Target.cpp
+++ 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.170414.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/d4f5dba7/attachment.bin>
More information about the llvm-commits
mailing list