simd1.C: Expect warning.

* g++.dg/conversion/simd1.C: Expect warning.
	* g++.dg/ext/attribute-test-1.C: Ditto.
	* g++.dg/ext/attribute-test-2.C: Ditto.
	* g++.dg/ext/attribute-test-3.C: Ditto.
	* g++.dg/ext/attribute-test-4.C: Ditto.

From-SVN: r94563
This commit is contained in:
Janis Johnson 2005-02-01 21:28:30 +00:00 committed by Janis Johnson
parent f4a11c6009
commit 694c84cd03
6 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,11 @@
2005-02-01 Janis Johnson <janis187@us.ibm.com>
* g++.dg/conversion/simd1.C: Expect warning.
* g++.dg/ext/attribute-test-1.C: Ditto.
* g++.dg/ext/attribute-test-2.C: Ditto.
* g++.dg/ext/attribute-test-3.C: Ditto.
* g++.dg/ext/attribute-test-4.C: Ditto.
* gcc.dg/ppc64-toc.c: Don't explicitly use -m64.
* gcc.dg/ppc-eabi.c: Don't explicity use -m32.

View File

@ -6,6 +6,7 @@
#define vector __attribute__((vector_size(16)))
vector signed int vld (int a1, const vector signed int *a2) { return *a2; } /* { dg-error "near match" } */
/* { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } 8 } */
vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-error "near match" } */
extern int i;

View File

@ -7,7 +7,7 @@ extern "C" void abort();
#define vector __attribute__((vector_size(16)))
struct Constants {
inline vector unsigned int deadbeef(void) const {
inline vector unsigned int deadbeef(void) const { // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } }
return (vector unsigned int){0xdeadbeef, 0xabababab, 0x55555555, 0x12345678};
};
};

View File

@ -11,7 +11,7 @@ class vector_holder
char __attribute__((vector_size(16))) vec;
char __attribute__((vector_size(16))) vec1;
public:
operator __attribute__((vector_size(16))) short (void) {
operator __attribute__((vector_size(16))) short (void) { // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } }
return (__attribute__((vector_size(16))) short) vec;
}

View File

@ -23,7 +23,7 @@ class Star
friend vector float fTest(const Star &);
};
vector float Star::foo() const
vector float Star::foo() const // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } }
{
return data.v;
}

View File

@ -23,7 +23,7 @@ class Star
friend vector float fTest();
};
vector float Star::foo()
vector float Star::foo() // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } }
{
return data.v;
}