[PATCH] [AArch64] Add workaround for Cortex-A53 erratum (835769)
bradley.smith at arm.com
Fri Oct 10 02:05:10 PDT 2014
Some early revisions of the Cortex-A53 have an erratum (835769) whereby it is
possible for a 64-bit multiply-accumulate instruction in AArch64 state to
generate an incorrect result. The details are quite complex and hard to
determine statically, since branches in the code may exist in some
circumstances, but all cases end with a memory (load, store, or prefetch)
instruction followed immediately by the multiply-accumulate operation.
The safest work-around for this issue is to make the compiler avoid emitting
multiply-accumulate instructions immediately after memory instructions and the
simplest way to do this is to insert a NOP.
This patch implements such work-around. The work-around is only enabled
when specifying the clang command line option -mfix-cortex-a53-835769 or the
llvm backend option -aarch64-fix-cortex-a53-835769.
The work-around code generation is not enabled by default.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 25705 bytes
Desc: not available
More information about the llvm-commits