]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[Patch AArch64] Warn on unpredictable stlxrb , stlxrh and stlxr cases.
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Fri, 29 Jun 2018 12:06:05 +0000 (13:06 +0100)
committerRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Fri, 29 Jun 2018 12:10:29 +0000 (13:10 +0100)
commit513e3973f2dbc5370c0eb0d4eb5606fd8e79f91d
tree2d6ddb670e499f9a7d857eb089b7747b58ef33a1
parent48d86a7a60ed4055f4ca2de9b09627ea396d001a
[Patch AArch64] Warn on unpredictable stlxrb , stlxrh and stlxr cases.

A recent case in golang highlighted that gas wasn't warning on these
unpredictable cases in the architecture. Fixed thusly.

I need to audit gcc to make sure we have early clobbers on the
patterns but that's a separate patch.

Tested aarch64-none-elf and gas

Ok ?

Ramana

2018-06-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

        * config/tc-aarch64.c (warn_unpredictable_ldst): Add
        unpredictable cases for ldxp, stlxrb, stlxrh, stlxr.  *
        testsuite/gas/aarch64/diagnostic.s: New tests.  *
        testsuite/gas/aarch64/diagnostic.l: Adjust.
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/diagnostic.l
gas/testsuite/gas/aarch64/diagnostic.s