altivec-11.C: New test.
authorJanis Johnson <janis187@us.ibm.com>
Thu, 12 Aug 2004 21:25:44 +0000 (21:25 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 12 Aug 2004 21:25:44 +0000 (21:25 +0000)
2004-08-12  Janis Johnson  <janis1872us.ibm.com>

* g++.dg/ext/altivec-11.C: New test.

From-SVN: r85904

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/altivec-11.C [new file with mode: 0644]

index 9256ed9fd45e30d829bace30447d6351f7730d62..10e9e0b10e4c984f716831e93ff311980161b494 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-12  Janis Johnson  <janis1872us.ibm.com>
+
+       * g++.dg/ext/altivec-11.C: New test.
+
 2004-08-12  Paul Brook  <paul@codesourcery.com>
 
        * g++.dg/abi/arm_cxa_vec_1.C: New test.
diff --git a/gcc/testsuite/g++.dg/ext/altivec-11.C b/gcc/testsuite/g++.dg/ext/altivec-11.C
new file mode 100644 (file)
index 0000000..5df5311
--- /dev/null
@@ -0,0 +1,12 @@
+/* Test handling of literal constant for dss operation.  */
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
+/* { dg-options "-maltivec" } */
+
+#include <altivec.h>
+
+void
+foo ()
+{
+  vec_dss (1);
+}