This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test Harness and SPARC VIS Instructions


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 <>

       * 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.


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 ();
  return 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]