public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/29533]  New: Ada fails to vectorize even trivial loops
@ 2006-10-21  3:29 jeff at thecreems dot com
  2006-10-21  3:42 ` [Bug middle-end/29533] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: jeff at thecreems dot com @ 2006-10-21  3:29 UTC (permalink / raw)
  To: gcc-bugs

While there might exist a case that can be vectorized, a few of the simple
cases that should be easy that I have tried are not able to be vectorized.

For example, the following
package compare_lang is

  type the_range is range 0 .. 100;
  type My_Array is array (the_range) of Float;

  a, b, c : my_array;

  procedure do_compare;

end compare_lang;

package body compare_lang is

  procedure do_compare is
  begin
    for JJJ in the_range loop
      a(jjj) := b(jjj) * c(jjj);
    end loop;
  end do_compare;

end compare_lang;

gcc -c -O3 -gnatp -march=pentium4 -mfpmath=sse -msse3 -ftree-vectorize 
-ftree-vectorizer-verbose=5 compare_lang.adb

compare_lang.adb:5: note: not vectorized: complicated access pattern.
compare_lang.adb:3: note: vectorized 0 loops in function.

Obviously similar structures C vectorize fine.


-- 
           Summary: Ada fails to vectorize even trivial loops
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jeff at thecreems dot com
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug middle-end/29533] Ada fails to vectorize even trivial loops
  2006-10-21  3:29 [Bug ada/29533] New: Ada fails to vectorize even trivial loops jeff at thecreems dot com
@ 2006-10-21  3:42 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-21  3:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-10-21 03:42 -------
This is related to subtypes.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ada                         |middle-end
            Version|unknown                     |4.2.0


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


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

end of thread, other threads:[~2006-10-21  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-21  3:29 [Bug ada/29533] New: Ada fails to vectorize even trivial loops jeff at thecreems dot com
2006-10-21  3:42 ` [Bug middle-end/29533] " pinskia at gcc dot gnu dot org

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