missed from last commit
authorAlan Modra <amodra@gcc.gnu.org>
Wed, 10 Aug 2016 23:12:56 +0000 (08:42 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 10 Aug 2016 23:12:56 +0000 (08:42 +0930)
From-SVN: r239343

gcc/testsuite/gcc.target/powerpc/pr71680.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/powerpc/pr71680.c b/gcc/testsuite/gcc.target/powerpc/pr71680.c
new file mode 100644 (file)
index 0000000..fe5260f
--- /dev/null
@@ -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);
+}