aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c
new file mode 100644
index 000000000..33c71c6d1
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031010-1.c
@@ -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); }