This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Support (match_operand:MODE) in genpreds


This patch adds a small feature to genpreds, that is

(match_operand:MODE 0 "predicate")

will call predicate (op, MODE). This can be useful for example to match const_int's in a small range, as in

   (match_operand:QI 0 "immediate_operand")
   (match_operand:QI 0 "const_int_operand")

This patch is pretty safe, but I won't ask to include it in 4.0 if branching occurs before review. So, ok for mainline, whatever version number it is associated to?

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]