Add tunning of ldpw for THunderX.
authorAndrew Pinski <apinski@cavium.com>
Mon, 12 Sep 2016 21:30:33 +0000 (21:30 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 12 Sep 2016 21:30:33 +0000 (14:30 -0700)
commit54700e2e7f11d6715670182ee37a378a89d77a12
tree6e800cf87fc5a29de7310822ed32aaedcc3b58ca
parent47f138d178c2b89b0f9f964404bb15243cd72a28
Add tunning of ldpw for THunderX.

2016-09-12  Andrew Pinski  <apinski@cavium.com>

        * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
        New tuning option.
        * config/aarch64/aarch64.c (thunderx_tunings): Enable
        AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
        (aarch64_operands_ok_for_ldpstp): Return false if
        AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
        was SImode and the alignment is less than 8 byte.
        (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2016-09-12  Andrew Pinski  <apinski@cavium.com>

        * gcc.target/aarch64/thunderxloadpair.c: New testcase.
        * gcc.target/aarch64/thunderxnoloadpair.c: New testcase.

From-SVN: r240102
gcc/ChangeLog
gcc/config/aarch64/aarch64-tuning-flags.def
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/thunderxloadpair.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/thunderxnoloadpair.c [new file with mode: 0644]