Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using %stick where available



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Nov 7, 2012, at 9:41 PM, matthew green wrote:


        rd      SOFTINT, %g1
-       btst    1, %g1
+       mov     1, %g5
+       sllx    %g5, 16, %g3
+       or      %g5, %g3, %g5

Only "set 0x1001, %g5" is faster.

oh much better than mine :-)

No, "set" is synonym of "sethi/or" sequence.  So it's same to your
suggestion.  (except for confusing typo. 0x1001 -> 0x10001 :-)

right.  funtionally identical, but *much* easier to read... :)

YMMV on that, I find andcc %reg, #imm, %g0 easier and more obvious than btst #imm, %reg ;)

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEVAwUBUJsh/cpnzkX8Yg2nAQJE+gf+NYhDhRfz1XmXoScqM/WIxEKKKR3sImry
uF/pKAPCtbr0WaVqlT8/7pLccniu8gU9o4E3fpIfsbJSvp7Wf6J4vVq5NZBanFVy
UNwaPXH5KdTrkQkJXaP9IptkqqDc607BAMDfTZFBfYOCyl1eDg8QhbOX7hlYKRNb
/RKReKSgZBGhgAVqXju8IPOCy0r7Wz3WpDQchXUsl4UkWItWzbDLOfkgLKtYYwT1
WqSssrPGwTtDRi18SllDmu/zKNUTC74nyPYm8bY0dF6E0zJNKquTOlw6AUQET6V8
kjeHXQPyzRn+XqsPWoK/IXWKdqeyr9fwV5JTanBta6tKVLIzxaHPqg==
=u4XO
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index