Split 32-byte AVX unaligned load/store.
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 27 Mar 2011 18:56:00 +0000 (18:56 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 27 Mar 2011 18:56:00 +0000 (11:56 -0700)
commitd253656a7be7461c2fc7bb638e93b9943a91de9b
tree6bde920e9a82430f7109eaf06eaa946470377eb2
parentc570af00f629db0876fcdbc5fb7ab12440b11d16
Split 32-byte AVX unaligned load/store.

gcc/

2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
and -mavx256-split-unaligned-store.
(ix86_option_override_internal): Split 32-byte AVX unaligned
load/store by default.
(ix86_avx256_split_vector_move_misalign): New.
(ix86_expand_vector_move_misalign): Use it.

* config/i386/i386.opt: Add -mavx256-split-unaligned-load and
-mavx256-split-unaligned-store.

* config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
256bit load/store.  Generate unaligned store on misaligned memory
operand.
(*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
256bit load/store.
(*avx_movdqu<avxmodesuffix>): Likewise.

* doc/invoke.texi: Document -mavx256-split-unaligned-load and
-mavx256-split-unaligned-store.

gcc/testsuite/

2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/avx256-unaligned-load-1.c: New.
* gcc.target/i386/avx256-unaligned-load-2.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-3.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-4.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-5.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-6.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-7.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-1.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-2.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-3.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-4.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-5.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-6.c: Likewise.
* gcc.target/i386/avx256-unaligned-store-7.c: Likewise.

From-SVN: r171578
20 files changed:
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.opt
gcc/config/i386/sse.md
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-load-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx256-unaligned-store-7.c [new file with mode: 0644]