On 11/12/2009 05:40 AM, Mohamed Shafi wrote:
So i need to change the mode of the register from SI to HI after
reloading. Is that allowed?
Of course. It's also allowed before reload:
(subreg:HI (reg:SI foo) 0)
See gen_lowpart.
r~
2009/11/10 Richard Henderson :
> On 11/10/2009 05:48 AM, Mohamed Shafi wrote:
>>
>> (define_insn "mulsi3"
>> [(set (match_operand:SI 0 "register_operand" "=&d")
>> (mult:SI (match_operand:SI 1 "register_operand" "%d")
>> (match_operand:SI 2 "register_operand" "d")))]
On 11/10/2009 05:48 AM, Mohamed Shafi wrote:
(define_insn "mulsi3"
[(set (match_operand:SI 0 "register_operand" "=&d")
(mult:SI (match_operand:SI 1 "register_operand" "%d")
(match_operand:SI 2 "register_operand" "d")))]
Note that "%" is only useful if the const