public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Test Harness and SPARC VIS Instructions
@ 2008-03-13 20:15 Uros Bizjak
  2008-03-14 14:47 ` Joel Sherrill
  0 siblings, 1 reply; 3+ messages in thread
From: Uros Bizjak @ 2008-03-13 20:15 UTC (permalink / raw)
  To: GCC Patches; +Cc: GCC, Joel Sherrill

Hello!

> This one looks like another test slipping another unsupported
> instruction by.
>
> 0x020012b8 <fbar+40>: bne,pn %icc, 0x200138c <fbar+252>
>
> Is this UltraSPARC and not V7?  Do we need two bad instructions
> in the test case?
>
> Executing on host: /home/joel/work-gnat/svn/b-gcc1-sparc/gcc/xgcc 
> -B/home/joel/work-gnat/svn/b-gcc1-sparc/gcc/ 
> /home/joel/work-gnat/svn/gcc/gcc/testsuite/gcc.dg/vect/vect-align-2.c 
> gcc_tg.o -ftree-vectorize -fno-vect-cost-model -mcpu=ultrasparc -mvis 
> -O2 -fdump-tree-vect-details -DSTACK_SIZE=2048 -fno-show-column 
> -B/home/joel/work-gnat/svn/bsp-install/sparc-rtems4.9/sis/lib/ -specs 
> bsp_specs -qrtems -mcpu=cypress 
> /home/joel/work-gnat/svn/b-gcc1-sparc/rtems_gcc_main.o -Wl,-wrap,exit 
> -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o 
> ./vect-align-2.exe (timeout = 300)
> PASS: gcc.dg/vect/vect-align-2.c (test for excess errors)
> Unexpected trap (0x 2) at address 0x020012B8^M
> illegal instruction^M
> FAIL: gcc.dg/vect/vect-align-2.c execution test

This is not-guarded runtime test. The problem is fixed by the attached 
patch.

2008-03-13  Uros Bizjak  <ubizjak@gmail.com>

        * gcc.dg/vect/vect-align-2.c: Remove dg-do run directive.
        (main): Call check_vect.

Tested on x86_64-pc-linux-gnu, committed to mainline.

Uros.

Index: vect-align-2.c
===================================================================
--- vect-align-2.c      (revision 133190)
+++ vect-align-2.c      (working copy)
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_int } */
-/* { dg-do run } */
 
 #include <stdlib.h>
 #include <stdarg.h>
@@ -36,6 +35,8 @@
 {
   struct foo  *fp = (struct foo *) malloc (2*sizeof (struct foo));
 
+  check_vect ();
+
   fbar(fp);
   return 0;
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-14 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 20:15 Test Harness and SPARC VIS Instructions Uros Bizjak
2008-03-14 14:47 ` Joel Sherrill
2008-03-14 15:19   ` Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).