This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A question regarding define_split pattern
- From: "Mohamed Shafi" <shafitvm at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 15 Apr 2008 12:52:23 +0530
- Subject: A question regarding define_split pattern
Hello all,
I have the following define_insn and define_splt pattern
(define_insn "movhi_const"
[(set (match_operand:HI 0 "register_operand" "=r,r,r,r,r")
(match_operand:HI 1 "immediate_operand" "L,K,N,O,i"))]
....
)
(define_split
[(set (match_operand:HI 0 "register_operand" "")
(match_operand:HI 1 "immediate_operand" ""))]
"reload_completed"
....
)
In the define_insn for some alternatives i have '#' and for some i
have the instruction template.
But irrespective of whether '#' is present in the output template or
not all the alternatives are being spilt.
Should i be having a define_split specific for an alternative or only
the '#' alternative will be split?
Thanks for you time.
Regards,
Shafi