From: Szabolcs Nagy Date: Wed, 22 Aug 2018 15:12:05 +0000 (+0000) Subject: Change AArch64 specific FMAX/FMIN tests into generic MAX_EXPR/MIN_EXPR tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3543c89f5fcf7c15a15ce2c1402b1b81abdc2fa9;p=gcc.git Change AArch64 specific FMAX/FMIN tests into generic MAX_EXPR/MIN_EXPR tests gfortran now always uses MAX_EXPR/MIN_EXPR for MAX/MIN intrinsics, so the AArch64 specific FMAX/FMIN tests are no longer valid. 2018-08-22 Szabolcs Nagy * gfortran.dg/max_fmax_aarch64.f90: Rename to... * gfortran.dg/max_expr.f90: ...this. * gfortran.dg/min_fmin_aarch64.f90: Rename to... * gfortran.dg/min_expr.f90: ...this. From-SVN: r263778 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 55312e89897..078810eeb6f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-08-22 Szabolcs Nagy + + * gfortran.dg/max_fmax_aarch64.f90: Rename to... + * gfortran.dg/max_expr.f90: ...this. + * gfortran.dg/min_fmin_aarch64.f90: Rename to... + * gfortran.dg/min_expr.f90: ...this. + 2018-08-22 Richard Sandiford PR tree-optimization/86725 diff --git a/gcc/testsuite/gfortran.dg/max_expr.f90 b/gcc/testsuite/gfortran.dg/max_expr.f90 new file mode 100644 index 00000000000..c00ad62f744 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/max_expr.f90 @@ -0,0 +1,15 @@ +! { dg-do compile } +! { dg-options "-O2 -fdump-tree-optimized" } + +subroutine foo (a, b, c, d, e, f, g, h) + real (kind=8) :: a, b, c, d, e, f, g, h + a = max (a, b, c, d, e, f, g, h) +end subroutine + +subroutine foof (a, b, c, d, e, f, g, h) + real (kind=4) :: a, b, c, d, e, f, g, h + a = max (a, b, c, d, e, f, g, h) +end subroutine + + +! { dg-final { scan-tree-dump-times "MAX_EXPR " 14 "optimized" } } diff --git a/gcc/testsuite/gfortran.dg/max_fmax_aarch64.f90 b/gcc/testsuite/gfortran.dg/max_fmax_aarch64.f90 deleted file mode 100644 index b818241a1f9..00000000000 --- a/gcc/testsuite/gfortran.dg/max_fmax_aarch64.f90 +++ /dev/null @@ -1,15 +0,0 @@ -! { dg-do compile { target aarch64*-*-* } } -! { dg-options "-O2 -fdump-tree-optimized" } - -subroutine foo (a, b, c, d, e, f, g, h) - real (kind=8) :: a, b, c, d, e, f, g, h - a = max (a, b, c, d, e, f, g, h) -end subroutine - -subroutine foof (a, b, c, d, e, f, g, h) - real (kind=4) :: a, b, c, d, e, f, g, h - a = max (a, b, c, d, e, f, g, h) -end subroutine - - -! { dg-final { scan-tree-dump-times "\.FMAX " 14 "optimized" } } diff --git a/gcc/testsuite/gfortran.dg/min_expr.f90 b/gcc/testsuite/gfortran.dg/min_expr.f90 new file mode 100644 index 00000000000..5f32d5073c9 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/min_expr.f90 @@ -0,0 +1,15 @@ +! { dg-do compile } +! { dg-options "-O2 -fdump-tree-optimized" } + +subroutine foo (a, b, c, d, e, f, g, h) + real (kind=8) :: a, b, c, d, e, f, g, h + a = min (a, b, c, d, e, f, g, h) +end subroutine + + +subroutine foof (a, b, c, d, e, f, g, h) + real (kind=4) :: a, b, c, d, e, f, g, h + a = min (a, b, c, d, e, f, g, h) +end subroutine + +! { dg-final { scan-tree-dump-times "MIN_EXPR " 14 "optimized" } } diff --git a/gcc/testsuite/gfortran.dg/min_fmin_aarch64.f90 b/gcc/testsuite/gfortran.dg/min_fmin_aarch64.f90 deleted file mode 100644 index 009869b497d..00000000000 --- a/gcc/testsuite/gfortran.dg/min_fmin_aarch64.f90 +++ /dev/null @@ -1,15 +0,0 @@ -! { dg-do compile { target aarch64*-*-* } } -! { dg-options "-O2 -fdump-tree-optimized" } - -subroutine foo (a, b, c, d, e, f, g, h) - real (kind=8) :: a, b, c, d, e, f, g, h - a = min (a, b, c, d, e, f, g, h) -end subroutine - - -subroutine foof (a, b, c, d, e, f, g, h) - real (kind=4) :: a, b, c, d, e, f, g, h - a = min (a, b, c, d, e, f, g, h) -end subroutine - -! { dg-final { scan-tree-dump-times "\.FMIN " 14 "optimized" } }