Commit 115b6181 by Aldy Hernandez Committed by Aldy Hernandez

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

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
parent 95385cbb
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> 2002-01-09 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/20020108-1.c: Rewrite to choose the proper * gcc.c-torture/execute/20020108-1.c: Rewrite to choose the proper
......
...@@ -3,12 +3,18 @@ ...@@ -3,12 +3,18 @@
#define vector __attribute__((vector_size(16))) #define vector __attribute__((vector_size(16)))
int __attribute__((mode(V4SI))) x, y; static int __attribute__((mode(V4SI))) x, y;
vector int i,j,k; static vector signed int i,j,k;
vector short s,t,u; static vector signed short s,t;
vector signed char c,d,e; static vector signed char c,d;
vector float f,g,h; static vector float f,g;
static vector unsigned char uc;
static vector signed int *pi;
static int int1, int2;
void void
b() b()
...@@ -30,4 +36,17 @@ b() ...@@ -30,4 +36,17 @@ b()
k = __builtin_altivec_vcmpgtub_p (c, d); k = __builtin_altivec_vcmpgtub_p (c, d);
k = __builtin_altivec_vcmpgtuh_p (s, t); k = __builtin_altivec_vcmpgtuh_p (s, t);
k = __builtin_altivec_vcmpgtuw_p (i, j); 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);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment