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