Commit f6d03cd5 by Bernd Schmidt Committed by Bernd Schmidt

mul-subnormal-single-1.x: Add tic6x-*-* case.

	* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: Add tic6x-*-*
	case.
	* gcc.c-torture/execute/ieee/20000320-1.x: Likewise.
	* gcc.c-torture/execute/ieee/hugeval.x: Likewise.
	* gcc.c-torture/execute/ieee/mzero2.c: Comment out the divide tests for
	C67X.
	* gcc.c-torture/execute/ieee/pr29302.x: New file.
	* gcc.dg/torture/type-generic-1.c: Add -DUNSAFE for tic6x-*-*.
	* gcc.dg/torture/builtin-math-7.c: Add a comment.

From-SVN: r176353
parent a4a2c37d
2011-07-16 Bernd Schmidt <bernds@codesourcery.com>
* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: Add tic6x-*-*
case.
* gcc.c-torture/execute/ieee/20000320-1.x: Likewise.
* gcc.c-torture/execute/ieee/hugeval.x: Likewise.
* gcc.c-torture/execute/ieee/mzero2.c: Comment out the divide tests for
C67X.
* gcc.c-torture/execute/ieee/pr29302.x: New file.
* gcc.dg/torture/type-generic-1.c: Add -DUNSAFE for tic6x-*-*.
* gcc.dg/torture/builtin-math-7.c: Add a comment.
2011-07-15 Jason Merrill <jason@redhat.com> 2011-07-15 Jason Merrill <jason@redhat.com>
PR testsuite/49741 PR testsuite/49741
......
...@@ -7,4 +7,9 @@ if [istarget "avr-*-*"] { ...@@ -7,4 +7,9 @@ if [istarget "avr-*-*"] {
# AVR doubles are floats # AVR doubles are floats
return 1 return 1
} }
if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
# C6X floating point hardware turns denormals to zero in FP conversions.
set torture_execute_xfail "tic6x-*-*"
return 1
}
return 0 return 0
...@@ -19,5 +19,11 @@ if {[istarget "*-*-vxworks*"]} { ...@@ -19,5 +19,11 @@ if {[istarget "*-*-vxworks*"]} {
} }
} }
if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
# C6X uses -freciprocal-math by default.
set torture_execute_xfail "$target_triplet"
return 1
}
return 0 return 0
...@@ -13,4 +13,9 @@ if [istarget "spu-*-*"] { ...@@ -13,4 +13,9 @@ if [istarget "spu-*-*"] {
# support subnormals. # support subnormals.
return 1 return 1
} }
if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
# C6X floating point hardware turns denormals to zero in multiplications.
set torture_execute_xfail "tic6x-*-*"
return 1
}
return 0 return 0
...@@ -44,6 +44,8 @@ main () ...@@ -44,6 +44,8 @@ main ()
expect (+1.00 * nzero, nzero); expect (+1.00 * nzero, nzero);
expect (-1.00 * nzero, pzero); expect (-1.00 * nzero, pzero);
#ifndef _TMS320C6700
/* C6X floating point division is implemented using reciprocals. */
expect (pzero / pzero, nan); expect (pzero / pzero, nan);
expect (pzero / nzero, nan); expect (pzero / nzero, nan);
expect (nzero / pzero, nan); expect (nzero / pzero, nan);
...@@ -53,6 +55,7 @@ main () ...@@ -53,6 +55,7 @@ main ()
expect (-1.00 / pzero, ninf); expect (-1.00 / pzero, ninf);
expect (+1.00 / nzero, ninf); expect (+1.00 / nzero, ninf);
expect (-1.00 / nzero, pinf); expect (-1.00 / nzero, pinf);
#endif
exit (0); exit (0);
} }
if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
# C6X uses -freciprocal-math by default.
set torture_execute_xfail "tic6x-*-*"
return 1
}
return 0
if { [istarget "tic6x-*-*"] && [check_effective_target_ti_c67x] } {
# C6X uses -freciprocal-math by default.
set torture_execute_xfail "tic6x-*-*"
return 1
}
return 0
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
Origin: Kaveh R. Ghazi, August 13, 2009. */ Origin: Kaveh R. Ghazi, August 13, 2009. */
/* { dg-do run } */ /* { dg-do run } */
/* C6X fails due to -freciprocal-math default. */
/* { dg-skip-if "" { tic6x-*-* } "*" "" } */ /* { dg-skip-if "" { tic6x-*-* } "*" "" } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
/* { dg-require-effective-target large_double } */ /* { dg-require-effective-target large_double } */
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */ /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
/* { dg-options "-DUNSAFE" { target tic6x*-*-* } } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
#include "../tg-tests.h" #include "../tg-tests.h"
......
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