]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/24912 (m68k build failure: ICE: in reload_cse_simplify_operands)
authorHans-Peter Nilsson <hp@axis.com>
Sat, 19 Nov 2005 21:54:26 +0000 (21:54 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 19 Nov 2005 21:54:26 +0000 (21:54 +0000)
PR middle-end/24912
* gcc.dg/torture/pr24912-1.c: New test.

From-SVN: r107230

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

index 62e030980185bfd685e1d35b773cb0ffba824b54..89fdbeb9cb9bf3a291e48f6fba82c68899fb9625 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR middle-end/24912
+       * gcc.dg/torture/pr24912-1.c: New test.
+
 2005-11-19  Janne Blomqvist  <jb@gcc.gnu.org>
 
        PR fortran/24862
diff --git a/gcc/testsuite/gcc.dg/torture/pr24912-1.c b/gcc/testsuite/gcc.dg/torture/pr24912-1.c
new file mode 100644 (file)
index 0000000..947175f
--- /dev/null
@@ -0,0 +1,10 @@
+void foo(void);
+void
+bar (unsigned char *p)
+{
+  int j;
+  j = *(p) ;
+  j += ((signed char) (*p) ) << 8;
+  if (j)
+    foo();
+}