[Bug target/58762] [missed optimization] Vectorizing abs(int).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58762 Cong Hou changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Cong Hou --- (In reply to Cong Hou from comment #3) > Author: congh > Date: Thu Oct 31 00:50:47 2013 > New Revision: 204241 > > URL: http://gcc.gnu.org/viewcvs?rev=204241&root=gcc&view=rev > Log: > 2013-10-30 Cong Hou > > Backport from mainline: > 2013-10-30 Cong Hou > > PR target/58762 > * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function. > * config/i386/i386.c (ix86_expand_sse2_abs): New function. > * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int). > > > Modified: > branches/google/gcc-4_8/gcc/ChangeLog > branches/google/gcc-4_8/gcc/config/i386/i386-protos.h > branches/google/gcc-4_8/gcc/config/i386/i386.c > branches/google/gcc-4_8/gcc/config/i386/sse.md
[Bug target/58762] [missed optimization] Vectorizing abs(int).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58762 --- Comment #3 from congh at gcc dot gnu.org --- Author: congh Date: Thu Oct 31 00:50:47 2013 New Revision: 204241 URL: http://gcc.gnu.org/viewcvs?rev=204241&root=gcc&view=rev Log: 2013-10-30 Cong Hou Backport from mainline: 2013-10-30 Cong Hou PR target/58762 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function. * config/i386/i386.c (ix86_expand_sse2_abs): New function. * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int). Modified: branches/google/gcc-4_8/gcc/ChangeLog branches/google/gcc-4_8/gcc/config/i386/i386-protos.h branches/google/gcc-4_8/gcc/config/i386/i386.c branches/google/gcc-4_8/gcc/config/i386/sse.md
[Bug target/58762] [missed optimization] Vectorizing abs(int).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58762 --- Comment #2 from congh at gcc dot gnu.org --- Author: congh Date: Wed Oct 30 20:01:47 2013 New Revision: 204229 URL: http://gcc.gnu.org/viewcvs?rev=204229&root=gcc&view=rev Log: 2013-10-30 Cong Hou PR target/58762 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function. * config/i386/i386.c (ix86_expand_sse2_abs): New function. * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int). 2013-10-30 Cong Hou * gcc.target/i386/vect-abs-s8.c: New test. * gcc.target/i386/vect-abs-s16.c: New test. * gcc.target/i386/vect-abs-s32.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/vect-abs-s16.c trunk/gcc/testsuite/gcc.target/i386/vect-abs-s32.c trunk/gcc/testsuite/gcc.target/i386/vect-abs-s8.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386-protos.h trunk/gcc/config/i386/i386.c trunk/gcc/config/i386/sse.md trunk/gcc/testsuite/ChangeLog