]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr63856 - test case
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Nov 2014 22:24:59 +0000 (22:24 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Nov 2014 22:24:59 +0000 (22:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217991 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/pr63856.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pr63856.c b/gcc/testsuite/gcc.dg/pr63856.c
new file mode 100644 (file)
index 0000000..6a987e2
--- /dev/null
@@ -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];
+}