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; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2012-07-13  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-29533-4@http.gcc.gnu.org/bugzilla/>
2012-07-13  8:55 ` [Bug middle-end/29533] Ada fails to vectorize even trivial loops rguenth at gcc dot gnu.org
2012-07-13  9:17 ` steven at gcc dot gnu.org
2006-10-21  3:29 [Bug ada/29533] New: " 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).