[PATCH v2] forbid 8-byte atomic on Cortex M

Phoebe Buckheister llvm at quasiparticle.net
Mon Jun 16 11:24:59 PDT 2014


Another try at disabling 8 byte atomics on Cortex M. Interestingly,
llvm generated ldrex/strex instructions for plain 32 bit loads and
stores on Cortex M, even though those are already atomic. Thus, emit
exclusive accesses only for 64 bit accesses and only on !M, otherwise
use whatever the core has: atomics up to 32 bit for M, up to 64 for the
rest.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-ldrex-on-m.patch
Type: text/x-patch
Size: 3055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140616/e871e408/attachment.bin>


More information about the llvm-commits mailing list