summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-18 09:01:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-18 09:01:21 +0000
commit3cefe7ff3b59688a672c937663751c611bfb5ac7 (patch)
tree6bf320b2bf650044576c1d8773573d6b783c181e /gcc/testsuite/gcc.c-torture
parent27ed7650debf12b87a76091b7a80998e234ba66e (diff)
downloadgcc-3cefe7ff3b59688a672c937663751c611bfb5ac7.tar.gz
2011-07-18 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 176387 using svnmerge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@176388 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x12
5 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x b/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
index 4535c611eb4..e05e854846e 100644
--- a/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
@@ -7,4 +7,9 @@ if [istarget "avr-*-*"] {
# AVR doubles are floats
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
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x b/gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x
index ee4ac4feb96..c66de1c0648 100644
--- a/gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x
@@ -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
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x b/gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x
index 5978c94a8ea..418526599d5 100644
--- a/gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x
@@ -13,4 +13,9 @@ if [istarget "spu-*-*"] {
# support subnormals.
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
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c b/gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c
index 0da53d24737..00c8efe9136 100644
--- a/gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c
@@ -44,6 +44,8 @@ main ()
expect (+1.00 * nzero, nzero);
expect (-1.00 * nzero, pzero);
+#ifndef _TMS320C6700
+ /* C6X floating point division is implemented using reciprocals. */
expect (pzero / pzero, nan);
expect (pzero / nzero, nan);
expect (nzero / pzero, nan);
@@ -53,6 +55,7 @@ main ()
expect (-1.00 / pzero, ninf);
expect (+1.00 / nzero, ninf);
expect (-1.00 / nzero, pinf);
+#endif
exit (0);
}
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x b/gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x
new file mode 100644
index 00000000000..1922b14d83e
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x
@@ -0,0 +1,12 @@
+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