Skip to content

Commit

Permalink
Z: Fix arraycmplen opcode error
Browse files Browse the repository at this point in the history
The isArrayCmpSign function accept only arraycmp opcode
Removed from arraycmplen since sign doesnt mean anything there

Fix: eclipse#7135 Signed-off-by: ehsan kiani far ehsan.kianifar@gmail.com
  • Loading branch information
ehsankianifar committed Oct 10, 2023
1 parent 83cb598 commit 4b67650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/z/codegen/OMRTreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11862,9 +11862,9 @@ OMR::Z::TreeEvaluator::arraycmplenEvaluator(TR::Node * node, TR::CodeGenerator *

if (TR::isJ9() && !comp->getOption(TR_DisableSIMDArrayCompare) && cg->getSupportsVectorRegisters())
{
// An empirical study has showed that CLC is faster for all array sizes if the number of bytes to copy is known to be constant
// An empirical study has showed that CLC is faster for all array sizes if the number of bytes to compare is known to be constant
if (!node->getChild(2)->getOpCode().isLoadConst())
return TR::TreeEvaluator::arraycmpSIMDHelper(node, cg, NULL, NULL, true, !node->isArrayCmpSign()/*return102*/, true);
return TR::TreeEvaluator::arraycmpSIMDHelper(node, cg, NULL, NULL, true, false, true);
}

TR::Node * firstBaseAddr = node->getFirstChild();
Expand Down

0 comments on commit 4b67650

Please sign in to comment.