[PATCH] D73343: [llvm-exegesis] Restrict the range of allowable rounding countrols.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 03:58:20 PST 2020


courbet created this revision.
courbet added a reviewer: gchatelet.
Herald added subscribers: mstojanovic, tschuett.
Herald added a project: LLVM.

It turns out that CUR_DIRECTION is just an internal placeholder, not an actual
valid encoded value.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73343

Files:
  llvm/tools/llvm-exegesis/lib/X86/Target.cpp


Index: llvm/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -651,7 +651,7 @@
   switch (Op.getExplicitOperandInfo().OperandType) {
   case X86::OperandType::OPERAND_ROUNDING_CONTROL:
     AssignedValue =
-        MCOperand::createImm(randomIndex(X86::STATIC_ROUNDING::NO_EXC));
+        MCOperand::createImm(randomIndex(X86::STATIC_ROUNDING::TO_ZERO));
     return Error::success();
   case X86::OperandType::OPERAND_COND_CODE:
     AssignedValue =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73343.240152.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200124/8cfb58db/attachment.bin>


More information about the llvm-commits mailing list