* gcc.target/powerpc/altivec-macros.c: Fix dg-message directives.
* gcc.target/powerpc/ppu-intrinsics.c: Ignore some warnings.
* gcc.target/powerpc/darwin-save-world-1.c: Require AltiVec hardware.
* gcc.target/powerpc/altivec-types-1.c: Expect some notes.
* gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Ignore a warning.
* g++.dg/ext/altivec-2.C: Initialize a local variable.
* g++.dg/ext/altivec-3.C: Move AltiVec code out of main.
From-SVN: r139610
2008-08-26 Janis Johnson <janis187@us.ibm.com>
- gcc.dg/torture/type-generic-1.c: Don't use IBM 128-bit long double.
- g++.dg/torture/type-generic-1.C: Ditto.
+ * gcc.target/powerpc/altivec-macros.c: Fix dg-message directives.
+ * gcc.target/powerpc/ppu-intrinsics.c: Ignore some warnings.
+ * gcc.target/powerpc/darwin-save-world-1.c: Require AltiVec hardware.
+ * gcc.target/powerpc/altivec-types-1.c: Expect some notes.
+ * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Ignore a warning.
+ * g++.dg/ext/altivec-2.C: Initialize a local variable.
+ * g++.dg/ext/altivec-3.C: Move AltiVec code out of main.
+
+ * gcc.dg/torture/type-generic-1.c: Don't use IBM 128-bit long double.
+ * g++.dg/torture/type-generic-1.C: Ditto.
2008-08-26 Victor Kaplansky <victork@il.ibm.com>
int main (int argc, const char * argv[])
{
- int i;
+ int i = 0;
const float cf = 1.0;
vector float v;
const vector float cv = (vector float){1.0, 2.0, 3.0, 4.0};
CHECK_INVARIANT (vec_all_eq (vxi.v, vx_g.v));
}
-int main(void)
+void main1(void)
{
CHECK_INVARIANT (sizeof(struct foo) == 8 && sizeof(struct vfoo) == 48);
- altivec_check();
-
bar(i_1, x_g, (short)i_2, (float)d_2, ld_1, (char)i_1, d_3);
baz(i_1, v_g, i_1, vx_g, i_1, v2_g, i_1, vx2_g);
quux(i_1, v_g, v_g);
baz2(i_1, vx_g);
-
+}
+
+int main(void)
+{
+ altivec_check();
+ main1();
return 0;
}
return ret;
}
+/* Ignore a warning that is irrelevant to the purpose of this test. */
+/* { dg-prune-output ".*GCC vector returned by reference.*" } */
/* { dg-warning "redefined" "pixel redefined" { target *-*-* } 48 } */
/* { dg-warning "redefined" "bool redefined" { target *-*-* } 49 } */
-/* { dg-message "note: previous" "prev __vector defn" { target *-*-* } 24 } */
-/* { dg-message "note: previous" "prev __pixel defn" { target *-*-* } 27 } */
-/* { dg-message "note: previous" "prev __bool defn" { target *-*-* } 30 } */
-/* { dg-message "note: previous" "prev vector defn" { target *-*-* } 33 } */
-/* { dg-message "note: previous" "prev pixel defn" { target *-*-* } 36 } */
-/* { dg-message "note: previous" "prev bool defn" { target *-*-* } 39 } */
+/* { dg-message "location of the previous" "prev __vector defn" { target *-*-* } 24 } */
+/* { dg-message "location of the previous" "prev __pixel defn" { target *-*-* } 27 } */
+/* { dg-message "location of the previous" "prev __bool defn" { target *-*-* } 30 } */
+/* { dg-message "location of the previous" "prev vector defn" { target *-*-* } 33 } */
+/* { dg-message "location of the previous" "prev pixel defn" { target *-*-* } 36 } */
+/* { dg-message "location of the previous" "prev bool defn" { target *-*-* } 39 } */
__vector __bool double vbd; /* { dg-error "" "" } */
__vector __bool short float blf; /* { dg-error "" "" } */
__vector __bool short double vlbd; /* { dg-error "" "" } */
+
+/* { dg-message "note: previous" "prev vsf" { target *-*-* } 79 } */
+/* { dg-message "note: previous" "prev vsd" { target *-*-* } 82 } */
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-skip-if "need to be able to execute AltiVec" { ! { powerpc_altivec_ok && vmx_hw } } } */
/* { dg-options "-maltivec" } */
/* With altivec turned on, Darwin wants to save the world but we did not mark lr as being saved any more
/* { dg-do link { target { *-*-linux* && powerpc_fprs } } } */
-/* { dg-options "-W -Wall -mcpu=cell" } */
+/* { dg-options "-W -Wall -Wno-uninitialized -mcpu=cell" } */
/* Test some PPU intrinsics from <ppu_intrinsics.h>. */
#include <ppu_intrinsics.h>