[AArch64] Enable effective_target_sync_long_long*
authorMichael Hudson-Doyle <michael.hudson@linaro.org>
Thu, 17 Oct 2013 15:46:39 +0000 (15:46 +0000)
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>
Thu, 17 Oct 2013 15:46:39 +0000 (15:46 +0000)
From-SVN: r203773

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index dce8a58..a3646d4 100644 (file)
@@ -1,3 +1,11 @@
+2013-10-17  Michael Hudson-Doyle  <michael.hudson@linaro.org>
+
+       * gcc/testsuite/lib/target-supports.exp
+       (check_effective_target_sync_long_long): AArch64 supports
+       atomic operations on "long long".
+       (check_effective_target_sync_long_long_runtime): AArch64 can
+       execute atomic operations on "long long".
+
 2013-10-17  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/58143
index 7eb4dfe..5557c06 100644 (file)
@@ -4508,6 +4508,7 @@ proc check_effective_target_sync_int_128_runtime { } {
 proc check_effective_target_sync_long_long { } {
     if { [istarget x86_64-*-*]
         || [istarget i?86-*-*])
+        || [istarget aarch64*-*-*]
         || [istarget arm*-*-*]
         || [istarget alpha*-*-*]
         || ([istarget sparc*-*-*] && [check_effective_target_lp64]) } {
@@ -4537,6 +4538,8 @@ proc check_effective_target_sync_long_long_runtime { } {
                }
            } ""
        }]
+    } elseif { [istarget aarch64*-*-*] } {
+       return 1
     } elseif { [istarget arm*-*-linux-*] } {
        return [check_runtime sync_longlong_runtime {
            #include <stdlib.h>