From: Janis Johnson Date: Mon, 24 May 2004 17:51:15 +0000 (+0000) Subject: altivec-3.c: Move call to altivec_check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=386f10152bb3dcc7e949e36fabb089f27aaa6d45;p=gcc.git altivec-3.c: Move call to altivec_check. 2004-05-24 Janis Johnson * gcc.dg/altivec-3.c: Move call to altivec_check. From-SVN: r82211 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 667a742a8ec..bd68df784cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-05-24 Janis Johnson + + * gcc.dg/altivec-3.c: Move call to altivec_check. + 2004-05-23 Mark Mitchell PR c++/15044 diff --git a/gcc/testsuite/gcc.dg/altivec-3.c b/gcc/testsuite/gcc.dg/altivec-3.c index d442b229e5b..8377b21b303 100644 --- a/gcc/testsuite/gcc.dg/altivec-3.c +++ b/gcc/testsuite/gcc.dg/altivec-3.c @@ -49,7 +49,8 @@ compare_float4 (float *a, float *b) abort (); } -main () +void +main1 () { int loc1 = 600, loc2 = 800; int4 a3 = (int4) { loc1, loc2, 1000, 1200 }; @@ -58,8 +59,6 @@ main () float4 f3 = (float4) { 6.0, 8.0, 10.0, 12.0 }; float4 ftmp; - altivec_check (); - vec_store (i3, a3); itmp = vec_add_int4 (a1, a2); vec_store (j3, itmp); @@ -69,6 +68,12 @@ main () ftmp = vec_add_float4 (f1, f2); vec_store (h3, ftmp); compare_float4 (g3, h3); +} +int +main () +{ + altivec_check (); + main1 (); exit (0); }