diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 873c265518a..917278ee07e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-08-15 Richard Sandiford + + * config/aarch64/aarch64-sve.md (and3): Make the + operand order match the MOV /Z alias. + 2019-08-15 Richard Sandiford * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take diff --git a/gcc/config/aarch64/aarch64-sve.md b/gcc/config/aarch64/aarch64-sve.md index f1f4fa26ba9..ac65e691d73 100644 --- a/gcc/config/aarch64/aarch64-sve.md +++ b/gcc/config/aarch64/aarch64-sve.md @@ -3317,12 +3317,14 @@ ;; ------------------------------------------------------------------------- ;; Predicate AND. We can reuse one of the inputs as the GP. +;; Doubling the second operand is the preferred implementation +;; of the MOV alias, so we use that instead of %1/z, %1, %2. (define_insn "and3" [(set (match_operand:PRED_ALL 0 "register_operand" "=Upa") (and:PRED_ALL (match_operand:PRED_ALL 1 "register_operand" "Upa") (match_operand:PRED_ALL 2 "register_operand" "Upa")))] "TARGET_SVE" - "and\t%0.b, %1/z, %1.b, %2.b" + "and\t%0.b, %1/z, %2.b, %2.b" ) ;; Unpredicated predicate EOR and ORR.