summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-02 22:09:41 +0000
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-02 22:09:41 +0000
commit8bbb70d0841bf2c093d468e387fc126dc6e17d2a (patch)
tree84009c75990b32aa96d3b13a9a56f262de984c33
parent143e0eb06064e62f53d77759f2fbf35164e43366 (diff)
downloadppe42-gcc-8bbb70d0841bf2c093d468e387fc126dc6e17d2a.tar.gz
ppe42-gcc-8bbb70d0841bf2c093d468e387fc126dc6e17d2a.zip
* gcc.c-torture/compile/920501-12.x: New file, must pass -mshort
for HC11/HC12 (array is too large otherwise). * gcc.c-torture/compile/920501-4.x: New file, likewise. * gcc.c-torture/compile/20010518-2.x: Likewise. * gcc.c-torture/compile/980506-1.x: Don't execute this test on HC11/HC12 (array is too large). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63693 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010518-2.x8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-12.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-4.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980506-1.x3
5 files changed, 31 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index cc1a5730632..07ee5a562fc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
+
+ * gcc.c-torture/compile/920501-12.x: New file, must pass -mshort
+ for HC11/HC12 (array is too large otherwise).
+ * gcc.c-torture/compile/920501-4.x: New file, likewise.
+ * gcc.c-torture/compile/20010518-2.x: Likewise.
+ * gcc.c-torture/compile/980506-1.x: Don't execute this test on
+ HC11/HC12 (array is too large).
+
2003-03-01 Geoffrey Keating <geoffk@apple.com>
* lib/gcc-dg.exp (gcc-dg-test): Change .pch to .gch.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010518-2.x b/gcc/testsuite/gcc.c-torture/compile/20010518-2.x
index 4cfce33b2dc..1bd6f8fd464 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20010518-2.x
+++ b/gcc/testsuite/gcc.c-torture/compile/20010518-2.x
@@ -1,2 +1,8 @@
-set options "-S"
+# This test fails on HC11/HC12 when it is compiled without -mshort because
+# the array is too large (INT_MAX/2 > 64K). Force to use 16-bit ints for it.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+ set options "-S -mshort"
+} else {
+ set options "-S"
+}
return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-12.x b/gcc/testsuite/gcc.c-torture/compile/920501-12.x
new file mode 100644
index 00000000000..61ba34933fb
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/920501-12.x
@@ -0,0 +1,6 @@
+# This test fails on HC11/HC12 when it is compiled without -mshort because
+# the stack arrays are too large. Force to use 16-bit ints for it.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+ set options "-mshort"
+}
+return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-4.x b/gcc/testsuite/gcc.c-torture/compile/920501-4.x
new file mode 100644
index 00000000000..cf60af9be67
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/920501-4.x
@@ -0,0 +1,6 @@
+# This test fails on HC11/HC12 when it is compiled without -mshort because
+# the 'r0' array is too large. Force to use 16-bit ints for it.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+ set options "-mshort"
+}
+return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/980506-1.x b/gcc/testsuite/gcc.c-torture/compile/980506-1.x
index 056ef463835..133ed24d944 100644
--- a/gcc/testsuite/gcc.c-torture/compile/980506-1.x
+++ b/gcc/testsuite/gcc.c-torture/compile/980506-1.x
@@ -7,4 +7,7 @@ if { [istarget "h8300-*-*"] } {
return 1;
}
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+ return 1
+}
return 0
OpenPOWER on IntegriCloud