From: Janis Johnson Date: Tue, 15 Mar 2005 18:41:19 +0000 (+0000) Subject: target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3562bc34e82f46501669a483ed16cb863412ff0f;p=gcc.git target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin. * lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin. Co-Authored-By: Dorit Naishlos From-SVN: r96527 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 442e6c04461..fd4e902b50d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-03-15 Janis Johnson + Dorit Naishlos + + * lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for + darwin. + 2005-03-15 Dorit Naishlos * gcc.dg/vect/vect-54.c: Now vectorizable on targets that don't support diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 6328eb535f0..2acef12aeea 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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 {