[llvmlinux] [PATCH 1/2] [mips] Replace named register fix with an upstreamable version.

Vinícius Tinti viniciustinti at gmail.com
Fri Jan 9 18:34:22 UTC 2015


On Fri, Jan 9, 2015 at 4:09 PM, Renato Golin <renato.golin at linaro.org> wrote:
> On 9 January 2015 at 18:04, Vinícius Tinti <viniciustinti at gmail.com> wrote:
>> -     register unsigned long n asm("v0");
>> -     register unsigned long r asm("v0");
>> +     register unsigned long n;
>> +     register unsigned long r;
>>
>> How can you guarantee that the compiler will honor the register placement?
>
> You can't, and it won't. Maybe that's the intention?
>
> cheers,
> --renato

Strange, because in the past we have just done the inverse of this
exactly code in ARM and get rid of __asmeq().

http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/arm/patches/register_allocation_arm_psci.patch;h=aeda361116ae68bec070b06a6106a416684de91f;hb=HEAD

-- 
Simplicity is the ultimate sophistication


More information about the LLVMLinux mailing list