[PATCH] [MIPS] Support microMIPS HI/QI moves

Maciej W. Rozycki macro@codesourcery.com
Wed May 1 16:14:00 GMT 2013


On Mon, 22 Apr 2013, Moore, Catherine wrote:

> >  Dumb question: what's the difference between "all" and "*" in the
> > compression attribute?
> 
> The port defines the compression and enabled attributes like this:
> 
> (define_attr "compression" "none,all,micromips"
>   (const_string "none")) 
> 
> (define_attr "enabled" "no,yes"
>   (if_then_else (ior (eq_attr "compression" "all,none")
>                      (and (eq_attr "compression" "micromips")
>                           (match_test "TARGET_MICROMIPS")))
>                 (const_string "yes")
>                 (const_string "no")))
> 
> The "all" setting is used for register-to-register moves where the 
> alternative is compressed if compiling for micromips code or 
> uncompressed otherwise.
> 
> The default ("*") is none meaning this particular alternative will never 
> be compressed.

 Fair enough, thanks.  I find it a bit backwards with "*" being the usual 
glob character and therefore intuitively interpreted as "all", but I can 
recognise the space saving this solution gives a benefit of.

  Maciej



More information about the Gcc-patches mailing list