OSDN Git Service

* gcc.c-torture/execute/960312-1.x: New file, must pass -mshort
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 2003 22:34:02 +0000 (22:34 +0000)
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 2003 22:34:02 +0000 (22:34 +0000)
for HC11/HC12 (asm needs two int registers).
* gcc.c-torture/compile/20020312-1.x: New file, don't execute on
HC11/HC12 because the test uses an asm which needs two 32-bit
registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63697 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20020312-1.x [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/960312-1.x [new file with mode: 0644]

index 07ee5a5..3388db2 100644 (file)
@@ -1,5 +1,13 @@
 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
 
+       * gcc.c-torture/execute/960312-1.x: New file, must pass -mshort
+       for HC11/HC12 (asm needs two int registers).
+       * gcc.c-torture/compile/20020312-1.x: New file, don't execute on
+       HC11/HC12 because the test uses an asm which needs two 32-bit
+       registers.
+
+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.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020312-1.x b/gcc/testsuite/gcc.c-torture/compile/20020312-1.x
new file mode 100644 (file)
index 0000000..105f251
--- /dev/null
@@ -0,0 +1,6 @@
+# This does not compile on HC11/HC12 due to the asm which requires
+# two 32-bit registers.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+       return 1
+}
+return 0
diff --git a/gcc/testsuite/gcc.c-torture/execute/960312-1.x b/gcc/testsuite/gcc.c-torture/execute/960312-1.x
new file mode 100644 (file)
index 0000000..ed4bac4
--- /dev/null
@@ -0,0 +1,7 @@
+# This test fails on HC11/HC12 when it is compiled without -mshort because 
+# is uses an asm that requires two 32-bit registers (int).  It passes
+# when using -mshort because there are enough registers;  force -mshort.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+       set options "-mshort"
+}
+return 0