[llvm] 082dcca - [llvm-exegesis] Restrict the range of allowable rounding countrols.

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 02:53:47 PST 2020


Author: Clement Courbet
Date: 2020-02-03T11:53:27+01:00
New Revision: 082dccac9079d1c6219cecfc94f9345e1647a60b

URL: https://github.com/llvm/llvm-project/commit/082dccac9079d1c6219cecfc94f9345e1647a60b
DIFF: https://github.com/llvm/llvm-project/commit/082dccac9079d1c6219cecfc94f9345e1647a60b.diff

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

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

Reviewers: gchatelet

Subscribers: tschuett, mstojanovic, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73343

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
index 4daf42201a1d..72553af823f1 100644
--- a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -651,7 +651,7 @@ Error ExegesisX86Target::randomizeTargetMCOperand(
   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 =


        


More information about the llvm-commits mailing list