https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79354
Bug ID: 79354 Summary: [7 Regression] -mcpu=power8 -O2 generates power9 instruction on powerpc64le-linux Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- int b, f, g; float e; unsigned long d; __attribute__((noinline, noclone)) void foo (int *a) { for (g = 0; g < 32; g++) if (f) { e = d; __builtin_memcpy (&b, &e, sizeof (float)); b = *a; } } int main () { int h = 5; f = 1; asm volatile ("" : : : "memory"); foo (&h); return 0; } compiled with -O2 -mcpu=power8 actually emits a power9 stxssp instruction.