From f6a665d39fec278d8b499641a9d0d5014e9194bb Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Thu, 27 Aug 2015 22:13:43 +0000 Subject: [PATCH] target-supports.exp (check-effective_target_vect_double): Enable for Power targets with VSX hardware available. 2015-08-27 Bill Schmidt * lib/target-supports.exp (check-effective_target_vect_double): Enable for Power targets with VSX hardware available. * gfortran.dg/vect/O3-pr49957.f: Replace vect_no_align with vect_no_align && { ! vect_hw_misalign }. From-SVN: r227283 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gfortran.dg/vect/O3-pr49957.f | 2 +- gcc/testsuite/lib/target-supports.exp | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e04ef9d3a09..93e13840f2a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-08-27 Bill Schmidt + + * lib/target-supports.exp (check-effective_target_vect_double): + Enable for Power targets with VSX hardware available. + * gfortran.dg/vect/O3-pr49957.f: Replace vect_no_align with + vect_no_align && { ! vect_hw_misalign }. + 2015-08-27 Sebastian Pop * gcc.dg/graphite/graphite.exp (interchange_files, block_files): diff --git a/gcc/testsuite/gfortran.dg/vect/O3-pr49957.f b/gcc/testsuite/gfortran.dg/vect/O3-pr49957.f index a9735677e73..778b4a010b6 100644 --- a/gcc/testsuite/gfortran.dg/vect/O3-pr49957.f +++ b/gcc/testsuite/gfortran.dg/vect/O3-pr49957.f @@ -13,4 +13,4 @@ enddo return end -! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail vect_no_align } } } +! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 728d02026b5..363f7fe3877 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3711,6 +3711,8 @@ proc check_effective_target_vect_double { } { } } elseif { [istarget spu-*-*] } { set et_vect_double_saved 1 + } elseif { [istarget powerpc*-*-*] && [check_vsx_hw_available] } { + set et_vect_double_saved 1 } } -- 2.30.2