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]

Re: [PATCH] [MIPS] Fix operands for microMIPS SW16, SH16 and SB16


"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> On Sat, 12 Apr 2014, Richard Sandiford wrote:
>
>> I went ahead and applied the adjusted version of the patch to trunk
>> as below (because I wanted to add a testcase too).
>
>  I believe you need to adjust constraints to ensure constant 0 is known to 
> produce a 16-bit instruction encoding where possible.  Otherwise you'll 
> end up with suboptimal code when the instruction is in a branch delay 
> slot.

Yeah, it'd be good to do that too (although this is a preexisting problem).
I'm relying on you guys to do the microMIPS stuff though -- I don't have
a way of testing it.

Thanks,
Richard


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