When I use the actual snapshot of gcc41 (gcc-4.1-20050709) to compile the small 
test program given below, I get an ICE.


void work1 (float*  Data, float*  Kern, float*  Mul)
{
  for (int i=0; i<24; i++) Mul[i] = Data[i] * Kern[i];
}

int main (int argc, char **argv)
{
  float Kern[24]  __attribute__ ((aligned (16)))
    = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4};
  float Data[24]  __attribute__ ((aligned (16)))
    = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4};
  float Mul [24]  __attribute__ ((aligned (16)))
    = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4};
  work1(Data, Kern, Mul);
  return int(Mul[0]);
}


Since it is a similar ICE as in bug22037 I applied the patch given there, which 
had no effect.


g++41f -O3 -ftree-vectorize -c -o vectest.o vectest.cpp
vectest.cpp: In function 'int main(int, char**)':
vectest.cpp:6: error: definition in block 0 follows the use
for SSA_NAME: Data_97 in statement:
#   VUSE <Data_97>;
vect_var_.45_122 = *vect_pData.46_121;
vectest.cpp:6: internal compiler error: verify_ssa failed
Please submit a full bug report, with preprocessed source if appropriate.

g++41f -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1-20050709/configure --prefix=/usr/local/gcc41f
--program-suffix=41f --with-arch=opteron
--enable-languages=c,c++ --enable-checking
Thread model: posix
gcc version 4.1.0 20050709 (experimental)


Michael Cieslinski

-- 
           Summary: ICE with autovectorisation: verify_ssa failed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22433

Reply via email to