public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56223] New: Integer ABS is not recognized for more complicated pattern
@ 2013-02-06 11:40 ysrumyan at gmail dot com
  2013-02-06 11:41 ` [Bug tree-optimization/56223] " ysrumyan at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ysrumyan at gmail dot com @ 2013-02-06 11:40 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56223
           Summary: Integer ABS is not recognized for more complicated
                    pattern
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ysrumyan@gmail.com


In one important benchmark the following ABS pattern which is not recognized by
gcc was found:

   if (x >= 0)
      s += x;
   else
      s -= x;
that certainly should be converted to ABS as e.g. icc does.

In result the loop containing this pattern is not vectorized on x86 and arm.

I attached simple test-case to reproduce it.

If we complile it for atom with options " -O3 -m32 -march=atom2 -mtune=atom2
-ffast-math -msse2 -mfpmath=sse -ftree-vectorizer-verbose=2" we got:

...
t5.c:1: note: vectorized 0 loops in function.
...
t5.c:15: note: vectorized 1 loops in function.


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

end of thread, other threads:[~2023-04-10  5:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-06 11:40 [Bug tree-optimization/56223] New: Integer ABS is not recognized for more complicated pattern ysrumyan at gmail dot com
2013-02-06 11:41 ` [Bug tree-optimization/56223] " ysrumyan at gmail dot com
2013-02-06 12:15 ` rguenth at gcc dot gnu.org
2021-06-04  2:25 ` pinskia at gcc dot gnu.org
2021-06-04  2:28 ` pinskia at gcc dot gnu.org
2021-06-04  4:29 ` pinskia at gcc dot gnu.org
2021-06-04  4:40 ` pinskia at gcc dot gnu.org
2021-06-24  0:54 ` pinskia at gcc dot gnu.org
2021-06-25 21:23 ` pinskia at gcc dot gnu.org
2021-07-11  2:28 ` pinskia at gcc dot gnu.org
2021-07-19 15:56 ` pinskia at gcc dot gnu.org
2023-04-10  5:16 ` pinskia at gcc dot gnu.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).