]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Use offsetable address constraint for double-word memory operands, part 2
authorUros Bizjak <ubizjak@gmail.com>
Thu, 12 Sep 2024 14:28:10 +0000 (16:28 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 12 Sep 2024 14:28:10 +0000 (16:28 +0200)
Double-word memory operands are accessed as their high and low part, so the
memory location has to be offsettable.  Use "o" constraint instead of "m"
for double-word memory operands.

gcc/ChangeLog:

* config/i386/i386.md (*insvti_lowpart_1): Use "o" constraint
instead of "m" for double-word mode memory operands.

gcc/config/i386/i386.md

index 8d269feee83707c2c33f72e203c2fc77bb22dfdb..c0441514949088e3c780cdac18058f23fa320f8f 100644 (file)
   [(set (match_operand:TI 0 "nonimmediate_operand" "=ro,r,r,&r")
        (any_or_plus:TI
          (and:TI
-           (match_operand:TI 1 "nonimmediate_operand" "r,m,r,m")
+           (match_operand:TI 1 "nonimmediate_operand" "r,o,r,o")
            (match_operand:TI 3 "const_scalar_int_operand" "n,n,n,n"))
          (zero_extend:TI
            (match_operand:DI 2 "nonimmediate_operand" "r,r,m,m"))))]