ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/vec-init-6.c

15 lines
444 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile { target lp64 } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mdejagnu-cpu=power8 -O2" } */
vector int
merge (int a, int b, int c, int d)
{
return (vector int) { a, b, c, d };
}
/* { dg-final { scan-assembler-times {\mrldi} 2 } } */
/* { dg-final { scan-assembler "mtvsrd" } } */
/* { dg-final { scan-assembler-not "stw" } } */
/* { dg-final { scan-assembler-not "lxvw4x" } } */