| /* { dg-do compile { target { le } } } */ |
| /* { dg-require-effective-target powerpc_p8vector_ok } */ |
| /* { dg-options "-mdejagnu-cpu=power8 -O1 -mno-fold-gimple" } */ |
| /* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */ |
| /* { dg-final { scan-assembler "lxvd2x" } } */ |
| /* { dg-final { scan-assembler "xxpermdi" } } */ |
| |
| /* Verify that we don't try to do permute removal in the presence of |
| vec_ste. This used to ICE. */ |
| #include <altivec.h> |
| |
| void f (void *p) |
| { |
| vector unsigned int u32 = vec_vsx_ld (1, (const unsigned int *)p); |
| vec_ste (u32, 1, (unsigned int *)p); |
| } |