* gcc.c-torture/compile/20031010-1.c: New test.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Oct 2003 19:48:20 +0000 (19:48 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Oct 2003 19:48:20 +0000 (19:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72312 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20031010-1.c [new file with mode: 0644]

index 47b7bf4..b8d1d8a 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-10  Ian Lance Taylor  <ian@wasabisystems.com>
+
+       * gcc.c-torture/compile/20031010-1.c: New test.
+
 2003-10-10  Geoffrey Keating  <geoffk@apple.com>
 
        * gcc.c-torture/execute/va-arg-24.c: Correct, and rename to...
diff --git a/gcc/testsuite/gcc.c-torture/compile/20031010-1.c b/gcc/testsuite/gcc.c-torture/compile/20031010-1.c
new file mode 100644 (file)
index 0000000..33c71c6
--- /dev/null
@@ -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); }