advsimd-intrinsics.exp: Skip tests if target does not support Neon.
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 5 Nov 2014 15:22:28 +0000 (15:22 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Wed, 5 Nov 2014 15:22:28 +0000 (16:22 +0100)
2014-11-05  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
Skip tests if target does not support Neon.

From-SVN: r217134

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp

index 46f62b61aa506b1073d3d05da2b504a959bfe481..9dea355cd6826adecb874d46608a3645602c3544 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-05  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp:
+       Skip tests if target does not support Neon.
+
 2014-11-05  Christophe Lyon  <christophe.lyon@linaro.org>
 
        * lib/target-supports.exp (check_effective_target_bswap): Update
index 3aa0e1c90e2b3082b452639fc442ce6826136622..938086b23dae190f645b321546af52e92ee6dc5b 100644 (file)
@@ -32,6 +32,11 @@ load_lib torture-options.exp
 
 dg-init
 
+if {[istarget arm*-*-*]
+    && ![check_effective_target_arm_neon_ok]} then {
+  return
+}
+
 torture-init
 set-torture-options $C_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS