From 0c2f8805fad50a95099ed19955866c777e397f3c Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Mon, 10 May 2021 09:49:35 +0300 Subject: [PATCH] arc: Disable movmisalign patterns when aligned access is required Disable movmisalign patterns when aligned access is required. gcc/ 2021-05-10 Claudiu Zissulescu * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access only when munaligned-access option is on. (movmisalign): Likewise. Signed-off-by: Claudiu Zissulescu --- gcc/config/arc/simdext.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/arc/simdext.md b/gcc/config/arc/simdext.md index f090075..d142aac 100644 --- a/gcc/config/arc/simdext.md +++ b/gcc/config/arc/simdext.md @@ -1382,7 +1382,7 @@ (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_expand "movmisalign" [(set (match_operand:VWH 0 "general_operand" "") (match_operand:VWH 1 "general_operand" ""))] - "" + "unaligned_access" "{ if (prepare_move_operands (operands, mode)) DONE; -- 2.7.4