OSDN Git Service

2004-08-12 Janis Johnson <janis1872us.ibm.com>
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Aug 2004 21:25:44 +0000 (21:25 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Aug 2004 21:25:44 +0000 (21:25 +0000)
* g++.dg/ext/altivec-11.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85904 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9256ed9..10e9e0b 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);
+}