Commit 89b7d5e1 by Daniel Jacobowitz Committed by Nathan Froyd

simd1.C: Ignore irrelevant warning.

	* g++.dg/conversion/simd1.C: Ignore irrelevant warning.
	* g++.dg/ext/attribute-test-1.C: Likewise.
	* g++.dg/ext/attribute-test-2.C: Likewise.
	* g++.dg/ext/attribute-test-3.C: Likewise.
	* g++.dg/ext/attribute-test-4.C: Likewise.

Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>

From-SVN: r143304
parent 3b9c1abd
2009-01-12 Daniel Jacobowitz <dan@codesourcery.com>
Nathan Froyd <froydnj@codesourcery.com>
* g++.dg/conversion/simd1.C: Ignore irrelevant warning.
* g++.dg/ext/attribute-test-1.C: Likewise.
* g++.dg/ext/attribute-test-2.C: Likewise.
* g++.dg/ext/attribute-test-3.C: Likewise.
* g++.dg/ext/attribute-test-4.C: Likewise.
2009-01-12 Eric Botcazou <ebotcazou@adacore.com> 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert3.adb: New test. * gnat.dg/unchecked_convert3.adb: New test.
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#define vector __attribute__((vector_size(16))) #define vector __attribute__((vector_size(16)))
vector signed int vld (int a1, const vector signed int *a2) { return *a2; } /* { dg-message "vld" } */ vector signed int vld (int a1, const vector signed int *a2) { return *a2; } /* { dg-message "vld" } */
/* { 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-message "vld" } */ vector signed short vld (int a1, const vector signed short *a2) { return *a2; } /* { dg-message "vld" } */
extern int i; extern int i;
...@@ -21,3 +20,6 @@ void foo () ...@@ -21,3 +20,6 @@ void foo ()
vss = vld(i, vssp); vss = vld(i, vssp);
vss = vld(i, cvssp); vss = vld(i, cvssp);
} }
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector returned by reference.*" } */
...@@ -7,7 +7,7 @@ extern "C" void abort(); ...@@ -7,7 +7,7 @@ extern "C" void abort();
#define vector __attribute__((vector_size(16))) #define vector __attribute__((vector_size(16)))
struct Constants { struct Constants {
inline vector unsigned int deadbeef(void) const { // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } } inline vector unsigned int deadbeef(void) const {
return (vector unsigned int){0xdeadbeef, 0xabababab, 0x55555555, 0x12345678}; return (vector unsigned int){0xdeadbeef, 0xabababab, 0x55555555, 0x12345678};
}; };
}; };
...@@ -34,4 +34,5 @@ int main() ...@@ -34,4 +34,5 @@ int main()
return 0; return 0;
} }
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector returned by reference.*" } */
...@@ -11,7 +11,7 @@ class vector_holder ...@@ -11,7 +11,7 @@ class vector_holder
char __attribute__((vector_size(16))) vec; char __attribute__((vector_size(16))) vec;
char __attribute__((vector_size(16))) vec1; char __attribute__((vector_size(16))) vec1;
public: public:
operator __attribute__((vector_size(16))) short (void) { // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } } operator __attribute__((vector_size(16))) short (void) {
return (__attribute__((vector_size(16))) short) vec; return (__attribute__((vector_size(16))) short) vec;
} }
...@@ -47,3 +47,6 @@ int main() ...@@ -47,3 +47,6 @@ int main()
return 0; return 0;
} }
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector returned by reference.*" } */
...@@ -23,7 +23,7 @@ class Star ...@@ -23,7 +23,7 @@ class Star
friend vector float fTest(const Star &); friend vector float fTest(const Star &);
}; };
vector float Star::foo() const // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } } vector float Star::foo() const
{ {
return data.v; return data.v;
} }
...@@ -50,6 +50,5 @@ int main() { ...@@ -50,6 +50,5 @@ int main() {
return 0; return 0;
} }
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector returned by reference.*" } */
...@@ -23,7 +23,7 @@ class Star ...@@ -23,7 +23,7 @@ class Star
friend vector float fTest(); friend vector float fTest();
}; };
vector float Star::foo() // { dg-warning "vector returned by ref" "" { target { powerpc*-*-linux* && ilp32 } } } vector float Star::foo()
{ {
return data.v; return data.v;
} }
...@@ -46,3 +46,6 @@ int main() { ...@@ -46,3 +46,6 @@ int main() {
abort(); abort();
return 0; return 0;
} }
/* Ignore a warning that is irrelevant to the purpose of this test. */
/* { dg-prune-output ".*GCC vector returned by reference.*" } */
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