Displaying 3 results from an estimated 3 matches for "__bswapsi2".
2018 Nov 25
3
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
Hi @ll,
targetting i386, LLVM/clang generates wrong code for the following
functions:
unsigned long __bswapsi2 (unsigned long ul)
{
return (((ul) & 0xff000000ul) >> 3 * 8)
| (((ul) & 0x00ff0000ul) >> 8)
| (((ul) & 0x0000ff00ul) << 8)
| (((ul) & 0x000000fful) << 3 * 8);
}
unsigned long long __bswapdi2(unsigned long long ull)
{...
2018 Nov 25
3
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
...>
> ~Craig
>
>
> On Sun, Nov 25, 2018 at 8:03 AM Stefan Kanthak via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi @ll,
>>
>> targetting i386, LLVM/clang generates wrong code for the following
>> functions:
>>
>> unsigned long __bswapsi2 (unsigned long ul)
>> {
>> return (((ul) & 0xff000000ul) >> 3 * 8)
>> | (((ul) & 0x00ff0000ul) >> 8)
>> | (((ul) & 0x0000ff00ul) << 8)
>> | (((ul) & 0x000000fful) << 3 * 8);
>> }
>&...
2018 Nov 25
2
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
...Kanthak via llvm-dev <
> >> llvm-dev at lists.llvm.org> wrote:
> >>
> >>> Hi @ll,
> >>>
> >>> targetting i386, LLVM/clang generates wrong code for the following
> >>> functions:
> >>>
> >>> unsigned long __bswapsi2 (unsigned long ul)
> >>> {
> >>> return (((ul) & 0xff000000ul) >> 3 * 8)
> >>> | (((ul) & 0x00ff0000ul) >> 8)
> >>> | (((ul) & 0x0000ff00ul) << 8)
> >>> | (((ul) & 0x...