altivec-4.c: Add test for mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dstst, dstst...
authorAldy Hernandez <aldyh@redhat.com>
Thu, 10 Jan 2002 02:54:12 +0000 (02:54 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 10 Jan 2002 02:54:12 +0000 (02:54 +0000)
2002-01-08  Aldy Hernandez  <aldyh@redhat.com>

        * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
        mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.

From-SVN: r48709

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/altivec-4.c

index 1f10c6f0945cf4ed7d399b0316e8c33e45397999..3c7927f78efef369db62f62102857f11f5eec6d1 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
+
+        * gcc.dg/altivec-4.c: Add test for mtvscr, dssall, mfvscr, 
+       dss, lvsl, lvsr, dstt, dstst, dststt, dst.
+
 2002-01-09  Richard Henderson  <rth@redhat.com>
 
        * gcc.c-torture/execute/20020108-1.c: Rewrite to choose the proper
index 21fb8f6e073dcfa5de5950e5c1284ab6814aa3fe..4994f7dc5ac42c842049bbe634806158516aa518 100644 (file)
@@ -3,12 +3,18 @@
 
 #define vector __attribute__((vector_size(16)))
 
-int __attribute__((mode(V4SI))) x, y;
+static int __attribute__((mode(V4SI))) x, y;
 
-vector int i,j,k;
-vector short s,t,u;
-vector signed char c,d,e;
-vector float f,g,h;
+static vector signed int i,j,k;
+static vector signed short s,t;
+static vector signed char c,d;
+static vector float f,g;
+
+static vector unsigned char uc;
+
+static vector signed int *pi;
+
+static int int1, int2;
 
 void
 b()
@@ -30,4 +36,17 @@ b()
   k = __builtin_altivec_vcmpgtub_p (c, d);
   k = __builtin_altivec_vcmpgtuh_p (s, t);
   k = __builtin_altivec_vcmpgtuw_p (i, j);
+
+  __builtin_altivec_mtvscr (i);
+  __builtin_altivec_dssall ();
+  s = __builtin_altivec_mfvscr ();
+  __builtin_altivec_dss (3);
+
+  __builtin_altivec_dst (pi, int1 + int2, 3);
+  __builtin_altivec_dstst (pi, int1 + int2, 3);
+  __builtin_altivec_dststt (pi, int1 + int2, 3);
+  __builtin_altivec_dstt (pi, int1 + int2, 3);
+
+  uc = (vector unsigned char) __builtin_altivec_lvsl (int1 + 69, pi);
+  uc = (vector unsigned char) __builtin_altivec_lvsr (int1 + 69, pi);
 }