* gcc.c-torture/compile/20060421-1.c: New testcase.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 22 Apr 2006 15:31:09 +0000 (16:31 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 22 Apr 2006 15:31:09 +0000 (16:31 +0100)
From-SVN: r113173

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

index 6cdaade89982f734a0a45c56b18793f7e1839536..3264503a5f086bae150746e99b8bcc47f338107a 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-22  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * gcc.c-torture/compile/20060421-1.c: New testcase.
+
 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c/25875
diff --git a/gcc/testsuite/gcc.c-torture/compile/20060421-1.c b/gcc/testsuite/gcc.c-torture/compile/20060421-1.c
new file mode 100644 (file)
index 0000000..1bd4079
--- /dev/null
@@ -0,0 +1,9 @@
+/* This test used to ICE on ARM with -mcpu=iwmmxt.  */
+void
+foo (void)
+{
+  long long int a;
+  unsigned long b[249]; /* >= 249 causes failure */
+  register unsigned int c;
+  b[c] = (a & (1ULL << c)) ? 1 : 0;
+}