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>
(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;
(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;