[Bug c++/33958] New: Using "-ftree-vectorize" , creates an illegal movaps instruction

eran dot nissenhaus at mobileye dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 31 14:33:00 GMT 2007


g++ -v output:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.0/configure --prefix=/opt/gcc4.2.0
Thread model: posix
gcc version 4.2.0

using the following compilation flags:
g++ -Wall -Werror -ansi -pedantic -Wno-long-long -pipe -fmessage-length=0
-funit-at-a-time -maccumulate-outgoing-args -fvisibility-inlines-hidden
-fno-strict-aliasing -O3 -fsee -momit-leaf-frame-pointer -fmodulo-sched
-fgcse-sm -fgcse-las -fgcse-after-reload -ftree-loop-im -ftree-loop-ivcanon
-ftree-vectorize -fbranch-target-load-optimize2 -march=i686 -mfpmath=sse -msse
./bug.cpp

creates illegal code.
I think movapps recieves a misaligned memory address.  Omitting
"ftree-vectorize" from the compiler flags solves the problem.

thanks.


-- 
           Summary: Using "-ftree-vectorize" , creates an illegal movaps
                    instruction
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eran dot nissenhaus at mobileye dot com
  GCC host triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list