target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin.
authorJanis Johnson <janis187@us.ibm.com>
Tue, 15 Mar 2005 18:41:19 +0000 (18:41 +0000)
committerDorit Nuzman <dorit@gcc.gnu.org>
Tue, 15 Mar 2005 18:41:19 +0000 (18:41 +0000)
        * lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for
        darwin.

Co-Authored-By: Dorit Naishlos <dorit@il.ibm.com>
From-SVN: r96527

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

index 442e6c044619c329c521821bbd7c3a923a9d8d1a..fd4e902b50da70139fe0ea110d8ae7309bdbdb99 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-15  Janis Johnson  <janis187@us.ibm.com>
+           Dorit Naishlos  <dorit@il.ibm.com>
+
+       * lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for
+       darwin.
+
 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
 
        * gcc.dg/vect/vect-54.c: Now vectorizable on targets that don't support
index 6328eb535f0f35d8c33c5ba1ae021454f703667a..2acef12aeeaccd6d7ecc76c54797297125b246db 100644 (file)
@@ -371,8 +371,16 @@ proc check_vmx_hw_available { } {
        puts $f "  return 0; }"
        close $f
 
+       # Most targets don't require special flags for this test case, but
+       # Darwin does.
+       if [istarget *-*-darwin*] {
+         set opts "additional_flags=-maltivec"
+       } else {
+         set opts ""
+       }
+
        verbose "check_vmx_hw_available  compiling testfile $src" 2
-       set lines [${tool}_target_compile $src $exe executable ""]
+       set lines [${tool}_target_compile $src $exe executable "$opts"]
        file delete $src
 
        if [string match "" $lines] then {