re PR middle-end/20491 (internal compiler error: in subreg_regno_offset, at rtlanal...
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 29 Mar 2005 21:36:10 +0000 (21:36 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 29 Mar 2005 21:36:10 +0000 (21:36 +0000)
PR middle-end/20491
* gcc.dg/torture/asm-subreg-1.c: New test.

From-SVN: r97204

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

index 2c1e6d0c5e9674d5eed509e9af7fc2d1343363ef..81060c6526777c9704871cffea513b62406fd5cc 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-29  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR middle-end/20491
+       * gcc.dg/torture/asm-subreg-1.c: New test.
+
 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/20672
diff --git a/gcc/testsuite/gcc.dg/torture/asm-subreg-1.c b/gcc/testsuite/gcc.dg/torture/asm-subreg-1.c
new file mode 100644 (file)
index 0000000..2a53920
--- /dev/null
@@ -0,0 +1,14 @@
+/* PR middle-end/20491 */
+
+/* { dg-do compile } */
+
+/* Combine used to introduce invalid subregs for the asm input, and
+   we'd crash later on, when removing all subregs.  */
+
+volatile unsigned short _const_32 [4] = {1,2,3,4};
+void
+evas_common_convert_yuv_420p_601_rgba()
+{
+  __asm__ __volatile__ ("" : : "X" (*_const_32));
+}
+