aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-11-07 19:32:14 +0100
committerUros Bizjak <ubizjak@gmail.com>2023-11-07 19:33:26 +0100
commitfadf10e91872fc09298933e2a74a025966b58a80 (patch)
tree4406e270146d2d62e107630b36f13fd1eeabf42a
parent8cc3bc9cfd404505e5a9b76b316dadfd337f1968 (diff)
downloadgcc-fadf10e91872fc09298933e2a74a025966b58a80.zip
gcc-fadf10e91872fc09298933e2a74a025966b58a80.tar.gz
gcc-fadf10e91872fc09298933e2a74a025966b58a80.tar.bz2
i386: Make flags_reg_operand a special predicate
There is no need to check the mode in flags_reg_operand predicate. The mode in flags setting instructions is checked with ix86_match_ccmode. The patch avoids "warning: operand X missing mode?" warnings with VOIDmode flags_reg_operand predicate. gcc/ChangeLog: * config/i386/predicates.md ("flags_reg_operand"): Make predicate special to avoid automatic mode checks.
-rw-r--r--gcc/config/i386/predicates.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index a63b8cd..b5a8625 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -88,7 +88,7 @@
(match_test "REGNO (op) == AX_REG")))
;; Return true if op is the flags register.
-(define_predicate "flags_reg_operand"
+(define_special_predicate "flags_reg_operand"
(and (match_code "reg")
(match_test "REGNO (op) == FLAGS_REG")))