Skip to content

Commit

Permalink
Merge pull request #6606 from r30shah/fixVectorSupportChecks
Browse files Browse the repository at this point in the history
Set Vector Support in OMR
  • Loading branch information
0xdaryl committed Jul 21, 2022
2 parents c9e61d4 + c262e37 commit 1ee6044
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions compiler/z/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,18 @@ OMR::Z::CodeGenerator::initialize()

_cgFlags = 0;

bool supportsAutoSIMD = !comp->getOption(TR_DisableSIMD) && comp->target().cpu.supportsFeature(OMR_FEATURE_S390_VECTOR_FACILITY);

if(supportsAutoSIMD)
{
cg->setSupportsVectorRegisters();
cg->setSupportsAutoSIMD();
}
else
{
comp->setOption(TR_DisableSIMD);
}

// Initialize Linkage for Code Generator
cg->initializeLinkage();

Expand Down

0 comments on commit 1ee6044

Please sign in to comment.