mul-subnormal-single-1.x: Add tic6x-*-* case.
authorBernd Schmidt <bernds@codesourcery.com>
Sat, 16 Jul 2011 12:07:17 +0000 (12:07 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Sat, 16 Jul 2011 12:07:17 +0000 (12:07 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.x
gcc/testsuite/gcc.c-torture/execute/ieee/hugeval.x
gcc/testsuite/gcc.c-torture/execute/ieee/mul-subnormal-single-1.x
gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.c
gcc/testsuite/gcc.c-torture/execute/ieee/pr29302-1.x [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/builtin-math-7.c
gcc/testsuite/gcc.dg/torture/type-generic-1.c

index c49833478f34e6db4997697cca7ee1cc1e1e6086..cdc2f2d5fbc7a4469b499e6c781eca6db88810e6 100644 (file)
@@ -1,3 +1,15 @@
+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>
 
        PR testsuite/49741
index 4535c611eb4c4528fb6e8a971d4d1f273455e738..e05e854846eb4b49fe425de347aa2ca11eea3ac0 100644 (file)
@@ -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
index ee4ac4feb96e1505af9ea27cef0bc8816ce37958..c66de1c0648d796a705e994985220bab4b9f3ce3 100644 (file)
@@ -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
 
index 5978c94a8eae69c2d94e2db81f91943702ea791c..418526599d53542404ea01beb9c787fc64a9e78e 100644 (file)
@@ -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
index 0da53d247377878660b440de81ef2c1b1449a5c2..00c8efe9136c7d987530661f6b5155677b461227 100644 (file)
@@ -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 (file)
index 0000000..1922b14
--- /dev/null
@@ -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
index 754d3f0b44286f493a432bc8f1ed16f45711ac22..064e28641a7de7d63aa3934de61b6181a7fc4124 100644 (file)
@@ -5,6 +5,7 @@
    Origin: Kaveh R. Ghazi,  August 13, 2009.  */
 
 /* { dg-do run } */
+/* C6X fails due to -freciprocal-math default.  */
 /* { dg-skip-if "" { tic6x-*-* } "*" "" } */
 /* { dg-add-options ieee } */
 /* { dg-require-effective-target large_double } */
index add83c09815117a3384e5a4da5956255abfeead9..f6949cff136c7934d303234f8f96c5f29724b994 100644 (file)
@@ -3,6 +3,7 @@
 
 /* { dg-do run } */
 /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
+/* { dg-options "-DUNSAFE" { target tic6x*-*-* } } */
 /* { dg-add-options ieee } */
 
 #include "../tg-tests.h"