Skip to content

Commit

Permalink
X: Correct cases in supports_feature_test
Browse files Browse the repository at this point in the history
Some cases were missing the check that they returned the expected value.

Signed-off-by: Spencer Comin <spencer.comin@ibm.com>
  • Loading branch information
Spencer-Comin committed Feb 8, 2024
1 parent ac0dab2 commit ff8628e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions compiler/x/env/OMRCPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,23 +388,23 @@ OMR::X86::CPU::supports_feature_test(uint32_t feature)
case OMR_FEATURE_X86_AVX:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX() == ans;
case OMR_FEATURE_X86_AVX2:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX2();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX2() == ans;
case OMR_FEATURE_X86_AVX512F:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512F();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512F() == ans;
case OMR_FEATURE_X86_AVX512VL:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VL();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VL() == ans;
case OMR_FEATURE_X86_AVX512BW:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512BW();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512BW() == ans;
case OMR_FEATURE_X86_AVX512DQ:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512DQ();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512DQ() == ans;
case OMR_FEATURE_X86_AVX512CD:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512CD();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512CD() == ans;
case OMR_FEATURE_X86_AVX512_VBMI2:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VBMI2();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VBMI2() == ans;
case OMR_FEATURE_X86_AVX512_BITALG:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512BITALG();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512BITALG() == ans;
case OMR_FEATURE_X86_AVX512_VPOPCNTDQ:
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VPOPCNTDQ();
return TR::CodeGenerator::getX86ProcessorInfo().supportsAVX512VPOPCNTDQ() == ans;
default:
return false;
}
Expand Down

0 comments on commit ff8628e

Please sign in to comment.