From: Alan Modra Date: Wed, 10 Aug 2016 23:12:56 +0000 (+0930) Subject: missed from last commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=763a282e015ffee818891789fa3018dd32189039;p=gcc.git missed from last commit From-SVN: r239343 --- diff --git a/gcc/testsuite/gcc.target/powerpc/pr71680.c b/gcc/testsuite/gcc.target/powerpc/pr71680.c new file mode 100644 index 00000000000..fe5260f73d9 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr71680.c @@ -0,0 +1,19 @@ +/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ +/* { dg-options "-mcpu=power8 -O1 -mlra" } */ + +#pragma pack(1) +struct +{ + float f0; +} a; + +extern void foo (int); + +int +main (void) +{ + for (;;) + foo ((int) a.f0); +}