This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] powerpc: Add a POWER8 implementation for GET|SET_FLOAT_WORD


On Tue, 20 Dec 2016, Tulio Magno Quites Machado Filho wrote:

> Provides a POWER8-specific implementation for GET_FLOAT_WORD and
> SET_FLOAT_WORD that is able to extract or set a float using only VSR and
> GPR.

Why doesn't the compiler handle this automatically when building for 
POWER8?  My comments in 
<https://sourceware.org/ml/libc-alpha/2016-06/msg01180.html> apply equally 
here (but reinterpretation of a bit pattern between integer and float is 
more generic than bitwise masking of a float, so a wider range of code is 
likely to benefit from such a compiler optimization).

-- 
Joseph S. Myers
joseph@codesourcery.com


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