https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102059

--- Comment #9 from Kewen Lin <linkw at gcc dot gnu.org> ---
One more reduced test case:

fail cmd: gcc -c -O2 -flto -mcpu=power8
pass cmd: gcc -c -O2 -flto -mcpu=power8 -mno-htm -mno-power8-fusion

----------------------
__attribute__((always_inline)) int foo(int *b) {
  *b += 10;
  return *b;
}

#pragma GCC target "cpu=power10"
int bar(int* a){
  *a = foo(a);
  return 0;
}

----------------------

I confirm the mismatch subset on HTM is expected, ISA 3.1 has removed the
transnational memory support.  As to OPTION_MASK_P8_FUSION, it's reasonable to
exclude it from ISA3.0 (power9), but I'm not sure if it's not a subset of
Power10 new fusion, from the current implementation it isn't.

Hi @Mike, could you help to confirm this?

Reply via email to