(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr83399.c
       1  /* PR target/83399 */
       2  /* { dg-do compile { target { powerpc*-*-linux* } } } */
       3  /* { dg-require-effective-target powerpc_vsx_ok } */
       4  /* { dg-options "-O1 -mabi=elfv2 -mlittle -mvsx" } */
       5  
       6  typedef __attribute__((altivec(vector__))) int v4si_t;
       7  int
       8  foo (void)
       9  {
      10    v4si_t a, u, v, y;
      11    u = __builtin_altivec_lvx (32, ((void *) &a) - 32);
      12    v = __builtin_altivec_lvx (64, ((void *) &a) - 32);
      13    y = u + v;
      14    return y[0];
      15  }