Disable movmisalign patterns when aligned access is required. gcc/ 2021-05-10 Claudiu Zissulescu <claz...@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 <claz...@synopsys.com> --- 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 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; -- 2.30.2