mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-28 01:14:27 +08:00
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
This commit is contained in:
parent
95385cbb58
commit
115b618171
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user