From: Ian Lance Taylor Date: Fri, 10 Oct 2003 19:48:20 +0000 (+0000) Subject: * gcc.c-torture/compile/20031010-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51e73d5737418298d1814d11e5b1a2c71fb6623c;p=gcc.git * gcc.c-torture/compile/20031010-1.c: New test. From-SVN: r72312 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 47b7bf41f5b..b8d1d8a9f97 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-10-10 Ian Lance Taylor + + * gcc.c-torture/compile/20031010-1.c: New test. + 2003-10-10 Geoffrey Keating * 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 index 00000000000..33c71c6d18a --- /dev/null +++ b/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); }