2017-08-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-cell-6.c
blobb6182a681722936ed309db3a214e0d1815e3e0b1
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
4 /* { dg-options "-O2 -maltivec -mabi=altivec -mcpu=cell" } */
5 #include <altivec.h>
7 /* This used to ICE with reloading of a constant address. */
9 vector float f(void)
11 vector float * a = (void*)16;
12 return vec_lvlx (0, a);