Skip to content

Commit

Permalink
Merge pull request #14768 from VermaSh/improve_readability_of_pdshr_e…
Browse files Browse the repository at this point in the history
…valuator
  • Loading branch information
joransiu committed Jan 26, 2023
2 parents ef8817c + 8e700d5 commit c9c0e15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/compiler/z/codegen/J9BCDTreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6337,10 +6337,12 @@ J9::Z::TreeEvaluator::pdshlVectorEvaluatorHelper(TR::Node *node, TR::CodeGenerat

if (cg->comp()->target().cpu.supportsFeature(OMR_FEATURE_S390_VECTOR_PACKED_DECIMAL_ENHANCEMENT_FACILITY) && cg->getIgnoreDecimalOverflowException())
{
// Write 1 to most significant bit to suppress HW overflow program interrupt
decimalPrecision |= 0x80;
}

targetReg = cg->allocateRegister(TR_VRF);
// Perform shift and set condition code on overflows
generateVRIgInstruction(cg, TR::InstOpCode::VSRP, node, targetReg, sourceReg, decimalPrecision, shiftAmount, 0x01);
}

Expand Down Expand Up @@ -6382,6 +6384,7 @@ J9::Z::TreeEvaluator::pdshrVectorEvaluatorHelper(TR::Node *node, TR::CodeGenerat

if (cg->comp()->target().cpu.supportsFeature(OMR_FEATURE_S390_VECTOR_PACKED_DECIMAL_ENHANCEMENT_FACILITY) && cg->getIgnoreDecimalOverflowException())
{
// Write 1 to most significant bit to suppress HW overflow program interrupt
decimalPrecision |= 0x80;
}

Expand Down

0 comments on commit c9c0e15

Please sign in to comment.