[ARM] PR71607: Fix ICE when loading constant
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 5 May 2017 15:41:28 +0000 (15:41 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 5 May 2017 15:41:28 +0000 (15:41 +0000)
commit655b5fc85b56cf9ac46af952041abf56ca383faa
tree6c70cf286921835cf7edecf7e0e20bb126b8d15e
parentb6263c5df20b4ab1e4b88b95bde37d836b47dfc9
[ARM] PR71607: Fix ICE when loading constant

2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
            Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/
    PR target/71607
    * config/arm/arm.md (use_literal_pool): Remove.
    (64-bit immediate split): No longer takes cost into consideration
    if arm_disable_literal_pool is enabled.
    * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
    used when arm_disable_literal_pool is enabled.
    (arm_max_const_double_inline_cost): Remove use of
    arm_disable_literal_pool.
    (push_minipool_fix): Add assert.
    (arm_reorg): Add return if arm_disable_literal_pool is enabled.
    * config/arm/vfp.md (no_literal_pool_df_immediate): New.
    (no_literal_pool_sf_immediate): New.

2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
        Thomas Preud'homme  <thomas.preudhomme@arm.com>
        Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/testsuite/
    PR target/71607
    * gcc.target/arm/thumb2-slow-flash-data.c: Renamed to ...
    * gcc.target/arm/thumb2-slow-flash-data-1.c: ... this.
    * gcc.target/arm/thumb2-slow-flash-data-2.c: New.
    * gcc.target/arm/thumb2-slow-flash-data-3.c: New.
    * gcc.target/arm/thumb2-slow-flash-data-4.c: New.
    * gcc.target/arm/thumb2-slow-flash-data-5.c: New.
    * gcc.target/arm/tls-disable-literal-pool.c: New.

Co-Authored-By: Prakhar Bahuguna <prakhar.bahuguna@arm.com>
Co-Authored-By: Thomas Preud'homme <thomas.preudhomme@arm.com>
From-SVN: r247640
12 files changed:
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.md
gcc/config/arm/vfp.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data.c [deleted file]
gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c [new file with mode: 0644]