aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-07-12 07:54:23 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-07-12 07:54:23 +0000
commitd281492de84960b5885f88fffeeb226650f5141d (patch)
tree28304a490e6a430efab5d43f9479dbef727543b4 /gcc/cfgexpand.c
parent1fdd6f0412922eb7438cbbadbb805fce8cc77485 (diff)
downloadgcc-d281492de84960b5885f88fffeeb226650f5141d.zip
gcc-d281492de84960b5885f88fffeeb226650f5141d.tar.gz
gcc-d281492de84960b5885f88fffeeb226650f5141d.tar.bz2
Support multiple operand counts for .md @ patterns
This patch extends the support for "@..." pattern names so that the patterns can have different numbers of operands. This allows things like binary and ternary operations to be handled in a consistent way, a bit like optabs. The generators assert that the number of operands passed is correct for the underlying instruction. Also, replace_operands_with_dups iterated over the old rtx format even after having decided to do a replacement, which broke with match_operator. 2019-07-12 Richard Sandiford <richard.sandiford@arm.com> gcc/ * doc/md.texi: Document that @ patterns can have different numbers of operands. * genemit.c (handle_overloaded_gen): Handle this case. * genopinit.c (handle_overloaded_gen): Likewise. * gensupport.c (replace_operands_with_dups): Iterate over the new rtx's format rather than the old one's. From-SVN: r273432
Diffstat (limited to 'gcc/cfgexpand.c')
0 files changed, 0 insertions, 0 deletions