]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 3 Aug 2005 14:15:28 +0000 (14:15 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 3 Aug 2005 14:15:28 +0000 (14:15 +0000)
'gcc-3_4-branch'.

From-SVN: r102693

gcc/testsuite/gcc.dg/torture/pr18582-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/torture/pr18582-1.c b/gcc/testsuite/gcc.dg/torture/pr18582-1.c
new file mode 100644 (file)
index 0000000..d222dab
--- /dev/null
@@ -0,0 +1,24 @@
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-options "-msse3" } */
+typedef char v16qi __attribute__((vector_size (16)));
+typedef float v4sf __attribute__((vector_size (16)));
+typedef double v2df __attribute__((vector_size (16)));
+
+extern char ca[];
+extern float fa[];
+extern double da[];
+
+extern v16qi cva[];
+extern v4sf fva[];
+extern v2df dva[];
+
+void
+foo (void)
+{
+  cva[0] = __builtin_ia32_loaddqu (ca);
+  cva[0] = __builtin_ia32_lddqu (ca);
+
+  fva[0] = __builtin_ia32_loadups (fa);
+
+  dva[0] = __builtin_ia32_loadupd (da);
+}