diff mbox series

[committed] testsuite: Expect a warning on aarch64 for declare-simd-coarray-lib.f90 [PR93660]

Message ID 20210329150903.GE1179226@tucnak
State New
Headers show
Series [committed] testsuite: Expect a warning on aarch64 for declare-simd-coarray-lib.f90 [PR93660] | expand

Commit Message

Jakub Jelinek March 29, 2021, 3:09 p.m. UTC
Hi!

aarch64 currently doesn't support declare simd where the return value and arguments
have different sizes and warns about that case.  This change adds a dg-warning
for that case like various other tests have already.

Committed to trunk.

2021-03-29  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/93660
	* gfortran.dg/gomp/declare-simd-coarray-lib.f90: Expect a mixed size
	declare simd warning on aarch64.


	Jakub

Comments

Christophe Lyon March 30, 2021, 8:36 a.m. UTC | #1
On Mon, 29 Mar 2021 at 17:09, Jakub Jelinek via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi!
>
> aarch64 currently doesn't support declare simd where the return value and arguments
> have different sizes and warns about that case.  This change adds a dg-warning
> for that case like various other tests have already.
>
> Committed to trunk.
>

Thanks,

I pushed it to gcc-10 too.

Christophe

> 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
>
>         PR fortran/93660
>         * gfortran.dg/gomp/declare-simd-coarray-lib.f90: Expect a mixed size
>         declare simd warning on aarch64.
>
> --- gcc/testsuite/gfortran.dg/gomp/declare-simd-coarray-lib.f90.jj      2021-03-23 16:14:01.842299433 +0100
> +++ gcc/testsuite/gfortran.dg/gomp/declare-simd-coarray-lib.f90 2021-03-29 17:01:29.885703123 +0200
> @@ -5,7 +5,7 @@
>  ! Failed as TREE_TYPE(fndecl) did not include the
>  ! hidden caf_token/caf_offset arguments.
>  !
> -integer function f(x)
> +integer function f(x)  ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } }
>     integer :: x[*]
>     !$omp declare simd
>     f = x[1]
>
>         Jakub
>
diff mbox series

Patch

--- gcc/testsuite/gfortran.dg/gomp/declare-simd-coarray-lib.f90.jj	2021-03-23 16:14:01.842299433 +0100
+++ gcc/testsuite/gfortran.dg/gomp/declare-simd-coarray-lib.f90	2021-03-29 17:01:29.885703123 +0200
@@ -5,7 +5,7 @@ 
 ! Failed as TREE_TYPE(fndecl) did not include the
 ! hidden caf_token/caf_offset arguments.
 !
-integer function f(x)
+integer function f(x)	! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } }
    integer :: x[*]
    !$omp declare simd
    f = x[1]