https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103051
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- All right, so I would ideally use: /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { has_arch_pwr7 } } } } */ but I see the following problem with detection of the target: 78 Executing on host: /dev/shm/objdir/gcc/xgcc -B/dev/shm/objdir/gcc/ arch_pwr759296.c -fdiagnostics-plain-output -S -o arch_pwr759296.s (timeout = 300) 79 spawn -ignore SIGHUP /dev/shm/objdir/gcc/xgcc -B/dev/shm/objdir/gcc/ arch_pwr759296.c -fdiagnostics-plain-output -S -o arch_pwr759296.s^M 80 arch_pwr759296.c:3:18: error: #error does not have power7 support.^M 81 compiler exited with status 1 82 output is: 83 arch_pwr759296.c:3:18: error: #error does not have power7 support.^M Note the #ifndef _ARCH_PWR7 only works when one uses -mcpu=native (or a corresponding -mflag), am I right? Shouldn't the function check_effective_target_has_arch_pwr7 pass -mcpu=native?