From 875d4ba74588d8c937e553432bf52b655d488056 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sun, 23 Nov 2014 22:24:59 +0000 Subject: [PATCH] pr63856 - test case From-SVN: r217991 --- gcc/testsuite/gcc.dg/pr63856.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr63856.c diff --git a/gcc/testsuite/gcc.dg/pr63856.c b/gcc/testsuite/gcc.dg/pr63856.c new file mode 100644 index 00000000000..6a987e2c8ed --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr63856.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -Wno-psabi" } */ +/* { dg-additional-options "-fPIC" { target fpic } } */ +typedef int v2si __attribute__ ((vector_size (8))); +typedef short v4hi __attribute__ ((vector_size (8))); + +int __attribute__ ((noinline, noclone)) f (v2si A, int N) +{ + return ((v4hi) A)[N]; +} + +int __attribute__ ((noinline, noclone)) g (v2si A, int N) +{ + return ((v4hi) A)[N]; +} -- 2.30.2