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 e04ef9d..93e1384 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 a973567..778b4a0 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 728d020..363f7fe 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
        }
     }