This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: New test case


This compile test case crashes the ARM backend with -mcpu=iwmmxt -O.
There is no approved compiler patch yet, but there is some discussion
about one.  The ARM backend passes all the existing compile tests with
-mcpu=iwmmxt.

OK to add the new test case?

Ian


2003-10-10  Ian Lance Taylor  <ian@wasabisystems.com>

	* gcc.c-torture/compile/20031010-1.c: New test.


Index: gcc.c-torture/compile/20031010-1.c
===================================================================
RCS file: gcc.c-torture/compile/20031010-1.c
diff -N gcc.c-torture/compile/20031010-1.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc.c-torture/compile/20031010-1.c	10 Oct 2003 19:16:15 -0000
@@ -0,0 +1,4 @@
+/* This crashed the ARM backend with -mcpu=iwmmxt -O because an insn
+   required a split which was not available for the iwmmxt.  */
+inline int *f1(int* a, int* b) { if (*b < *a) return b; return a; }
+int f2(char *d, char *e, int f) { int g = e - d; return *f1(&f, &g); }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]