summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/asm-subreg-1.c
blob: d3a14b24cdc49e6c6a22762c82746bb360a91dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/20491 */

/* { dg-do compile } */
/* { dg-skip-if "" { hppa*64*-*-* || sparc-*-vxworks* } "*" "" } */

/* 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));
}