summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/altivec-cell-6.c
blob: b6182a681722936ed309db3a214e0d1815e3e0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile  } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
/* { dg-options "-O2 -maltivec -mabi=altivec -mcpu=cell" } */
#include <altivec.h>

/* This used to ICE with reloading of a constant address. */

vector float f(void)
{
  vector float * a = (void*)16;
  return vec_lvlx (0, a);
}