From adea502310999d29d3829cc5c6fcb95a19b606fa Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Wed, 13 Jun 2018 10:42:57 +0200 Subject: [PATCH] [ARC] Allow EX instruction unconditionally gcc/ 2017-05-02 Claudiu Zissulescu * config/arc/arc.c (atomic_exchangesi): EX instruction is default for ARC700 and ARCv2. From-SVN: r261539 --- gcc/ChangeLog | 5 +++++ gcc/config/arc/atomic.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 93e02df51b8..5d3c396190b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-06-12 Claudiu Zissulescu + + * config/arc/arc.c (atomic_exchangesi): EX instruction is default + for ARC700 and ARCv2. + 2018-06-13 Chenghua Xu PR target/86076 diff --git a/gcc/config/arc/atomic.md b/gcc/config/arc/atomic.md index 13a2e34549c..4a56ca229cc 100644 --- a/gcc/config/arc/atomic.md +++ b/gcc/config/arc/atomic.md @@ -120,7 +120,7 @@ (match_operand:SI 1 "mem_noofs_operand" "") (match_operand:SI 2 "register_operand" "") (match_operand:SI 3 "const_int_operand" "")] - "TARGET_ATOMIC" + "TARGET_ARC700 || TARGET_V2" { enum memmodel model = (enum memmodel) INTVAL (operands[3]); -- 2.30.2