[Bug testsuite/103051] [12 regression] new test case gcc.dg/vect/tsvc/vect-tsvc-s112.c fails in r12-4840
willschm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 10 14:56:53 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103051
Will Schmidt <willschm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org,
| |wschmidt at gcc dot gnu.org
--- Comment #6 from Will Schmidt <willschm at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #4)
> 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?
I would expect it to pass with -mcpu=native.
Needs a closer look, not sure if I can get to it in short order. Added Bill
and Segher to cc.
More information about the Gcc-bugs
mailing list