[ARM] No IT usage deprecation for ARMv8-M
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 15 Jan 2018 14:09:28 +0000 (14:09 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 15 Jan 2018 14:09:28 +0000 (14:09 +0000)
commitdf9909b8675c8c9b6fa88c5d13afd2efa66dcf68
treea1ee9bb0064ed3520f45d008dfe879e14a346371
parentd726cb5d3784f7ed96318a2214ea777a86f9faad
[ARM] No IT usage deprecation for ARMv8-M

Deprecations related to the use of the IT instruction introduced in
Armv8-A do not apply to Armv8-M Baseline and mainline. However the
warning logic do not distinguish between the various profiles and warn
whenever the architecture version is 8.

This patch adds a check to exclude M profile architectures from this
warning. This works as expected when -march is specified on the
command-line or a .arch/.cpu directive exist. However, in autodetection
mode the CPU/architecture targeted is only known once the instructions
have been all processed but this code is run when IT instruction is
processed. It is therefore not possible to distinguish between Armv8-M
and Armv8-A in that mode.

The approach chosen here is not to warn in autodetection mode. The udf.d
testcase that relied on that behavior to test deprecation warning for
Armv8-A is therefore updated to explicitely pass -march=armv8-a.

2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gas/
* config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
profile architecture or if in autodetection mode.  Clarify that
deprecation is for performance reason and concerns Armv8-A and Armv8-R.
* testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
message.
* testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
* testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
* testsuite/gas/arm/udf.l: Likewise.
* testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/armv8-ar-bad.l
gas/testsuite/gas/arm/armv8-ar-it-bad.l
gas/testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l
gas/testsuite/gas/arm/udf.d
gas/testsuite/gas/arm/udf.l
This page took 0.035442 seconds and 4 git commands to generate.