Skip to content

Commit

Permalink
Merge pull request #10604 from harryyu1994/fixFailureOnPower
Browse files Browse the repository at this point in the history
Fix build break on Power
  • Loading branch information
mpirvu authored Sep 16, 2020
2 parents 7f76acb + 4ff2d54 commit 1d44c6a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions runtime/compiler/p/env/J9CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,48 +69,18 @@ J9::Power::CPU::supports_feature_test(uint32_t feature)
bool
J9::Power::CPU::is(OMRProcessorArchitecture p)
{
if (TR::Compiler->omrPortLib == NULL)
return self()->id() == self()->get_old_processor_type_from_new_processor_type(p);

#if defined(J9VM_OPT_JITSERVER)
if (TR::CompilationInfo::getStream())
#endif
{
TR_ASSERT_FATAL((_processorDescription.processor == p) == (self()->id() == self()->get_old_processor_type_from_new_processor_type(p)), "is test %d failed, id() %d, _processorDescription.processor %d", p, self()->id(), _processorDescription.processor);
}

return _processorDescription.processor == p;
}

bool
J9::Power::CPU::isAtLeast(OMRProcessorArchitecture p)
{
if (TR::Compiler->omrPortLib == NULL)
return self()->id() >= self()->get_old_processor_type_from_new_processor_type(p);

#if defined(J9VM_OPT_JITSERVER)
if (TR::CompilationInfo::getStream())
#endif
{
TR_ASSERT_FATAL((_processorDescription.processor >= p) == (self()->id() >= self()->get_old_processor_type_from_new_processor_type(p)), "is at least test %d failed, id() %d, _processorDescription.processor %d", p, self()->id(), _processorDescription.processor);
}

return _processorDescription.processor >= p;
}

bool
J9::Power::CPU::isAtMost(OMRProcessorArchitecture p)
{
if (TR::Compiler->omrPortLib == NULL)
return self()->id() <= self()->get_old_processor_type_from_new_processor_type(p);

#if defined(J9VM_OPT_JITSERVER)
if (TR::CompilationInfo::getStream())
#endif
{
TR_ASSERT_FATAL((_processorDescription.processor <= p) == (self()->id() <= self()->get_old_processor_type_from_new_processor_type(p)), "is at most test %d failed, id() %d, _processorDescription.processor %d", p, self()->id(), _processorDescription.processor);
}

return _processorDescription.processor <= p;
}

Expand Down

0 comments on commit 1d44c6a

Please sign in to comment.