This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] [MIPS] Support microMIPS HI/QI moves
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: "Moore, Catherine" <Catherine_Moore at mentor dot com>
- Cc: "rdsandiford at googlemail dot com" <rdsandiford at googlemail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 1 May 2013 17:13:50 +0100
- Subject: RE: [PATCH] [MIPS] Support microMIPS HI/QI moves
- References: <FD3DCEAC5B03E9408544A1E416F11242987BFA71 at NA-MBX-01 dot mgc dot mentorg dot com> <alpine dot DEB dot 1 dot 10 dot 1304222207300 dot 1453 at tp dot orcam dot me dot uk> <FD3DCEAC5B03E9408544A1E416F11242F8FA9611 at NA-MBX-04 dot mgc dot mentorg dot com>
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