]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Remove *stack_protect_set_4s_<mode>_di alternative that will never match
authorUros Bizjak <ubizjak@gmail.com>
Sun, 12 Nov 2023 17:18:19 +0000 (18:18 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 12 Nov 2023 17:18:19 +0000 (18:18 +0100)
The relevant peephole2 will never generate alternative (=m,=&a,0,m) because
operand 1 is not dead before the peephole2 pattern.

gcc/ChangeLog:

* config/i386/i386.md (*stack_protect_set_4s_<mode>_di):
Remove alternative 0.

gcc/config/i386/i386.md

index 01fc6ecc35187d0c29bc84479de0314e2662e7e4..ffd9f2d03814e55289bf35d12b490bfbd9838614 100644 (file)
    (set_attr "length" "24")])
 
 (define_insn "*stack_protect_set_4s_<mode>_di"
-  [(set (match_operand:PTR 0 "memory_operand" "=m,m")
-       (unspec:PTR [(match_operand:PTR 3 "memory_operand" "m,m")]
+  [(set (match_operand:PTR 0 "memory_operand" "=m")
+       (unspec:PTR [(match_operand:PTR 3 "memory_operand" "m")]
                    UNSPEC_SP_SET))
-   (set (match_operand:DI 1 "register_operand" "=&a,&r")
-       (sign_extend:DI (match_operand:SI 2 "nonimmediate_operand" "0,rm")))]
+   (set (match_operand:DI 1 "register_operand" "=&r")
+       (sign_extend:DI (match_operand:SI 2 "nonimmediate_operand" "rm")))]
   "TARGET_64BIT && reload_completed"
 {
   output_asm_insn ("mov{<imodesuffix>}\t{%3, %<k>1|%<k>1, %3}", operands);
   output_asm_insn ("mov{<imodesuffix>}\t{%<k>1, %0|%0, %<k>1}", operands);
-  if (which_alternative)
-    return "movs{lq|x}\t{%2, %1|%1, %2}";
-  else
-    return "{cltq|cdqe}";
+  return "movs{lq|x}\t{%2, %1|%1, %2}";
 }
   [(set_attr "type" "multi")
    (set_attr "length" "24")])