[PATCH 02/11] Arm - add speculation_barrier pattern

Christophe Lyon christophe.lyon@linaro.org
Mon Aug 6 14:01:00 GMT 2018


On Fri, 27 Jul 2018 at 11:38, Richard Earnshaw <Richard.Earnshaw@arm.com> wrote:
>
>
> This patch defines a speculation barrier for AArch32.
>
>         * config/arm/unspecs.md (unspecv): Add VUNSPEC_SPECULATION_BARRIER.
>         * config/arm/arm.md (speculation_barrier): New expand.
>         (speculation_barrier_insn): New pattern.
> ---

Hi Richard,

This patch causes compilation errors for c-c++-common/spec-barrier-2.c
when compiled for old architectures (eg -march=armv5t):
/ccrf2LoR.s:49: Error: selected processor does not support `isb' in ARM mode
/ccrf2LoR.s:50: Error: selected processor does not support `dsb sy' in ARM mode

Does this belong to the kind of failures you still expect from this
patch series?



More information about the Gcc-patches mailing list