This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48605] gcc.target/i386/sse4_1-insertps-2.c FAILs with -mtune=geode - instruction insertps with memory operands behaves differently
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Apr 2011 07:53:49 +0000
- Subject: [Bug target/48605] gcc.target/i386/sse4_1-insertps-2.c FAILs with -mtune=geode - instruction insertps with memory operands behaves differently
- Auto-submitted: auto-generated
- References: <bug-48605-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48605
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-16 07:53:43 UTC ---
Author: jakub
Date: Sat Apr 16 07:53:39 2011
New Revision: 172538
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172538
Log:
Backported from 4.6 branch
2011-04-15 Jakub Jelinek <jakub@redhat.com>
PR target/48605
* config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2]
is a MEM, offset it as needed based on top 2 bits in operands[3],
change MEM mode to SFmode and mask those 2 bits away from operands[3].
* gcc.target/i386/sse4_1-insertps-3.c: New test.
* gcc.target/i386/sse4_1-insertps-4.c: New test.
* gcc.target/i386/avx-insertps-3.c: New test.
* gcc.target/i386/avx-insertps-4.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/avx-vinsertps-3.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/avx-vinsertps-4.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/sse4_1-insertps-3.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/sse4_1-insertps-4.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/i386/sse.md
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog