target-supports.exp (check-effective_target_vect_double): Enable for Power targets...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 27 Aug 2015 22:13:43 +0000 (22:13 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Thu, 27 Aug 2015 22:13:43 +0000 (22:13 +0000)
2015-08-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* 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
gcc/testsuite/gfortran.dg/vect/O3-pr49957.f
gcc/testsuite/lib/target-supports.exp

index e04ef9d3a090262f3081bc9de6f7607934e618a4..93e13840f2ada9504f51f2820ba7c90f6cfdb385 100644 (file)
@@ -1,3 +1,10 @@
+2015-08-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * 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  <s.pop@samsung.com>
 
        * gcc.dg/graphite/graphite.exp (interchange_files, block_files):
index a9735677e7313fb6095c3aacaeba275acd670cb2..778b4a010b6a522fa0eedea9d5d33e48773b922e 100644 (file)
@@ -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 } } } } }
index 728d02026b55a784d54de6981f21db79a75ef189..363f7fe3877303ba59ee77a37c32ae6214efc876 100644 (file)
@@ -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
        }
     }