From 1746a7627411f6bea920386ec6f295056c16f18a Mon Sep 17 00:00:00 2001 From: aoliva Date: Tue, 29 Mar 2005 21:36:10 +0000 Subject: [PATCH] PR middle-end/20491 * gcc.dg/torture/asm-subreg-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97204 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/asm-subreg-1.c | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/torture/asm-subreg-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2c1e6d0c5e9..81060c65267 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-29 Alexandre Oliva + + PR middle-end/20491 + * gcc.dg/torture/asm-subreg-1.c: New test. + 2005-03-29 Joseph S. Myers 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 index 00000000000..2a539208529 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/asm-subreg-1.c @@ -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)); +} + -- 2.11.4.GIT