This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
match_dup as internal operands
- From: srimeruva at cse dot iitb dot ac dot in
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 21 Dec 2011 02:31:59 +0530
- Subject: match_dup as internal operands
- References: <1324405305.17587.ezmlm@gcc.gnu.org>
what is the advantage of using match_dup for internal operands as
(define_expand "zero_extendhisi2"
[(set (match_operand:SI 0 "register_operand" "")
(and:SI (subreg:SI
(match_operand:HI 1 "register_operand" "")
0)
(match_dup 2)))]
""
"operands[2]
= force_reg (SImode, GEN_INT (65535)); ")