From 72ad6d333902d1ac6a2c17b223508aea2b8a7e85 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 25 Nov 2015 19:39:19 +0000 Subject: [PATCH] * gfortran.dg/nint_p7.f90: New testcase. From-SVN: r230898 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gfortran.dg/nint_p7.f90 | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/nint_p7.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0b16f592e7..90c0aae9fee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-11-25 David Edelsohn + + * gfortran.dg/nint_p7.f90: New testcase. + 2015-11-25 Markus Trippelsdorf Paolo Carlini diff --git a/gcc/testsuite/gfortran.dg/nint_p7.f90 b/gcc/testsuite/gfortran.dg/nint_p7.f90 new file mode 100644 index 00000000000..8f3552293c5 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/nint_p7.f90 @@ -0,0 +1,12 @@ +! Fortran +! { dg-do compile { target { powerpc*-*-* } } } +! { dg-require-effective-target powerpc_vsx_ok } +! { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } +! { dg-options "-O2 -mcpu=power7 -ffast-math" } +! { dg-final { scan-assembler-times "xsrdpi" 2 } } + + subroutine test_nint(x4,x8) + real(4) x4 + real(8) x8 + print *, nint(x4), idnint(x8) + end subroutine test_nint -- 2.30.2