]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arc: Disable movmisalign patterns when aligned access is required
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 10 May 2021 06:49:35 +0000 (09:49 +0300)
committerClaudiu Zissulescu <claziss@synopsys.com>
Mon, 10 May 2021 06:49:53 +0000 (09:49 +0300)
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

index f090075745276bc162d5b4b3b51ba32dfb30298c..d142aacd7dc3d9b5d1d6e9ef5de71e0c9d3da1a5 100644 (file)
 (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;