From 763a282e015ffee818891789fa3018dd32189039 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 11 Aug 2016 08:42:56 +0930 Subject: [PATCH] missed from last commit From-SVN: r239343 --- gcc/testsuite/gcc.target/powerpc/pr71680.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gcc/testsuite/gcc.target/powerpc/pr71680.c 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); +} -- 2.30.2