]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sat, 11 Jun 2005 00:16:02 +0000 (00:16 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sat, 11 Jun 2005 00:16:02 +0000 (00:16 +0000)
'gcc-3_4-branch'.

From-SVN: r100833

gcc/testsuite/g++.dg/conversion/simd2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/conversion/simd2.C b/gcc/testsuite/g++.dg/conversion/simd2.C
new file mode 100644 (file)
index 0000000..a67df56
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+
+/* Test generic operations on vectors.  */
+
+int __attribute__((vector_size(16))) a, b, c;
+int __attribute__((vector_size(8))) d;
+void foo()
+{
+     a = b ^ c;
+     a = b + c;
+     a = b - c;
+     a = b * c;
+     a = b / c;
+     a = -b;
+     a = d + b;                /* { dg-error "can't convert between vector" } */
+}