target-supports.exp (check_effective_target_powerpc_spe): New.

* lib/target-supports.exp (check_effective_target_powerpc_spe):
	New.
	(check_effective_target_vect_cmdline_needed): Use it.

From-SVN: r120309
This commit is contained in:
Joseph Myers
2007-01-01 12:57:12 +00:00
committed by Joseph Myers
parent 641cd9176c
commit a2232e4bd8
2 changed files with 26 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2007-01-01 Joseph Myers <joseph@codesourcery.com>
* lib/target-supports.exp (check_effective_target_powerpc_spe):
New.
(check_effective_target_vect_cmdline_needed): Use it.
2006-12-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30202

View File

@@ -1,4 +1,4 @@
# Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006
# Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006, 2007
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
@@ -1230,7 +1230,9 @@ proc check_effective_target_vect_cmdline_needed { } {
set et_vect_cmdline_needed_saved 1
if { [istarget ia64-*-*]
|| (([istarget x86_64-*-*] || [istarget i?86-*-*])
&& [check_effective_target_lp64])} {
&& [check_effective_target_lp64])
|| ([istarget powerpc*-*-*]
&& [check_effective_target_powerpc_spe])} {
set et_vect_cmdline_needed_saved 0
}
}
@@ -1349,6 +1351,22 @@ proc check_effective_target_powerpc_altivec_ok { } {
}
}
# Return 1 if this is a PowerPC target with SPE enabled.
proc check_effective_target_powerpc_spe { } {
if { [istarget powerpc*-*-*] } {
return [check_no_compiler_messages powerpc_spe object {
#ifndef __SPE__
#error not SPE
#else
int dummy;
#endif
}]
} else {
return 0
}
}
# Return 1 if the target supports hardware vector shift operation.
proc check_effective_target_vect_shift { } {