]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/altivec-19.c: New.
authorGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 6 Feb 2005 08:51:32 +0000 (08:51 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 6 Feb 2005 08:51:32 +0000 (08:51 +0000)
From-SVN: r94670

gcc/testsuite/gcc.dg/altivec-19.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/altivec-19.c b/gcc/testsuite/gcc.dg/altivec-19.c
new file mode 100644 (file)
index 0000000..1693a54
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-options "-maltivec" } */
+/* { dg-final { scan-assembler "dst" } } */
+
+void foo ( char* image )
+{
+  while ( 1 )
+    {
+      __builtin_altivec_dst( (void *)( (long)image & ~0x0f ), 0, 0 );
+      image += 48;
+    }
+}