diff options
author | no-author <no-author@gcc.gnu.org> | 2005-03-09 23:20:13 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2005-03-09 23:20:13 +0000 |
commit | 1caddad370c8448d924d64b0e03a4ff0d27e8ed5 (patch) | |
tree | 3dd34a8c34793776e40587f22f12789ab230d69d /gcc/testsuite/gcc.apple/apple-altivec-3.c | |
parent | 9e88bc8754ac91301313180a1f11bbf74ed1a9dc (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-5000
'apple-gcc-5000'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-5000@96220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.apple/apple-altivec-3.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/apple-altivec-3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/apple-altivec-3.c b/gcc/testsuite/gcc.apple/apple-altivec-3.c new file mode 100644 index 00000000000..1112913de1b --- /dev/null +++ b/gcc/testsuite/gcc.apple/apple-altivec-3.c @@ -0,0 +1,14 @@ +/* APPLE LOCAL file AltiVec */ +/* Providing '-maltivec' should ensure that AltiVec codegen for block copies is enabled, + even if '-faltivec' is also specified. */ +/* { dg-do compile { target powerpc*-*-darwin* } } */ +/* { dg-options "-faltivec -maltivec" } */ +typedef struct { vector int a; vector int b; } Scld1; + +void testvaScld1 (int n, Scld1); + +void foo () +{ + Scld1 g1sScld1; + testvaScld1 (1, g1sScld1); /* { dg-bogus "disabled" } */ +} |