view gcc/testsuite/c-c++-common/pr80162-2.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR middle-end/80162 */
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */
/* { dg-options "-mavx2 -ffixed-xmm7" } */

typedef int V __attribute__ ((vector_size (32)));
register V u asm ("xmm7");

int
foo (int i)
{
  return u[i];
}

int
bar (void)
{
  return u[5];
}