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 <dorit@il.ibm.com>

From-SVN: r96527
This commit is contained in:
Janis Johnson 2005-03-15 18:41:19 +00:00 committed by Dorit Nuzman
parent 5f55a1ba12
commit 3562bc34e8
2 changed files with 15 additions and 1 deletions

View 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

View 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 {