Commit 7fc564b7 by Richard Sandiford Committed by Richard Sandiford

target-supports.exp (check_effective_target_coldfire_fpu): New procedure.

gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_coldfire_fpu): New
	procedure.
	* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: XFAIL on
	m68k targets if check_effective_target_coldfire_fpu returns true.

From-SVN: r121744
parent 10e96df4
2007-02-09 Richard Sandiford <richard@codesourcery.com>
* lib/target-supports.exp (check_effective_target_coldfire_fpu): New
procedure.
* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: XFAIL on
m68k targets if check_effective_target_coldfire_fpu returns true.
2007-02-09 Zdenek Dvorak <dvorakz@suse.cz> 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
Richard Guenther <rguenther@suse.de> Richard Guenther <rguenther@suse.de>
...@@ -3,4 +3,9 @@ if [istarget "mips-sgi-irix6*"] { ...@@ -3,4 +3,9 @@ if [istarget "mips-sgi-irix6*"] {
# isn't expected to work for n32 and n64 on MIPS IV targets. # isn't expected to work for n32 and n64 on MIPS IV targets.
return 1 return 1
} }
if {[istarget "m68k-*-linux-gnu*"] && [check_effective_target_coldfire_fpu]} {
# ColdFire FPUs require software handling of subnormals. Linux 2.6.10
# does not have this.
set torture_execute_xfail "m68k-*-linux-gnu*"
}
return 0 return 0
...@@ -2024,6 +2024,16 @@ proc check_effective_target_sync_char_short { } { ...@@ -2024,6 +2024,16 @@ proc check_effective_target_sync_char_short { } {
return $et_sync_char_short_saved return $et_sync_char_short_saved
} }
# Return 1 if the target uses a ColdFire FPU.
proc check_effective_target_coldfire_fpu { } {
return [check_no_compiler_messages coldfire_fpu assembly {
#ifndef __mcffpu__
#error FOO
#endif
}]
}
# Return 1 if the target matches the effective target 'arg', 0 otherwise. # Return 1 if the target matches the effective target 'arg', 0 otherwise.
# This can be used with any check_* proc that takes no argument and # This can be used with any check_* proc that takes no argument and
# returns only 1 or 0. It could be used with check_* procs that take # returns only 1 or 0. It could be used with check_* procs that take
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment