On Wed, 23 Apr 2025, Tamar Christina wrote:
> Hi All,
>
> I had missed this one during the AMDGCN test failures.
>
> Like vect-early-break_18.c this test is also scalaring the
> loads and thus leading to unexpected vectorization for this
> testcase.
>
> Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.
>
> Cross checked the failing case on amdgcn-amdhsa
> and all pass now.
>
> Ok for master? and GCC 15?
OK for trunk and 15 if you manage before RC2.
> Thanks,
> Tamar
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/vect/vect-early-break_38.c: Force -march=gfx908 for amdgcn.
>
> ---
> diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_38.c
> b/gcc/testsuite/gcc.dg/vect/vect-early-break_38.c
> index
> 36fc6a6eb60fae70f8f05a3d9435f5adce025847..010e7ea7e327f4bb0e33560e24dd3e6c5462d659
> 100644
> --- a/gcc/testsuite/gcc.dg/vect/vect-early-break_38.c
> +++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_38.c
> @@ -2,6 +2,7 @@
> /* { dg-do compile } */
> /* { dg-require-effective-target vect_early_break } */
> /* { dg-require-effective-target vect_int } */
> +/* { dg-additional-options "-march=gfx908" { target amdgcn*-*-* } } */
>
> #ifndef N
> #define N 803
>
>
>
--
Richard Biener <[email protected]>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)