[1/3,committed] arc: Disable movmisalign patterns when aligned access is required

Message ID 20210510065846.915720-1-claziss@synopsys.com
State New
Headers show
Series
  • [1/3,committed] arc: Disable movmisalign patterns when aligned access is required
Related show

Commit Message

Disable movmisalign patterns when aligned access is required.

gcc/
2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
	only when munaligned-access option is on.
	(movmisalign<mode>): Likewise.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>

---
 gcc/config/arc/simdext.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.2

Patch

diff --git a/gcc/config/arc/simdext.md b/gcc/config/arc/simdext.md
index f0900757452..d142aacd7dc 100644
--- a/gcc/config/arc/simdext.md
+++ b/gcc/config/arc/simdext.md
@@ -1382,7 +1382,7 @@  (define_insn_and_split "*movv2hi_insn"
 (define_expand "movmisalignv2hi"
  [(set (match_operand:V2HI 0 "general_operand" "")
        (match_operand:V2HI 1 "general_operand" ""))]
- ""
+ "unaligned_access"
  "{
    if (prepare_move_operands (operands, V2HImode))
      DONE;
@@ -1441,7 +1441,7 @@  (define_insn_and_split "*mov<mode>_insn"
 (define_expand "movmisalign<mode>"
  [(set (match_operand:VWH 0 "general_operand" "")
        (match_operand:VWH 1 "general_operand" ""))]
- ""
+ "unaligned_access"
  "{
    if (prepare_move_operands (operands, <MODE>mode))
      DONE;