[compiler-rt] r201909 - Introduce CRT_HAS_128BIT, currently for all __LP64__ platforms.

Richard Pennington rich at pennware.com
Sun May 11 13:51:09 PDT 2014


On 05/11/2014 11:36 AM, Hal Finkel wrote:
> ----- Original Message -----
>> From: "Joerg Sonnenberger" <joerg at bec.de>
>> To: llvm-commits at cs.uiuc.edu
>> Sent: Friday, February 21, 2014 5:53:04 PM
>> Subject: [compiler-rt] r201909 - Introduce CRT_HAS_128BIT,	currently for all __LP64__ platforms.
>>
>> Author: joerg
>> Date: Fri Feb 21 17:53:03 2014
>> New Revision: 201909
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=201909&view=rev
>> Log:
>> Introduce CRT_HAS_128BIT, currently for all __LP64__ platforms.
>> Use it to enable the various functions for TI mode.
> It seems that the logic behind this may not quite be right. On PPC32, for example, __int128 is not supported, but SROA can (and does) still form i128 variables at the IR level, and operations on those variables may turn into the associated runtime calls. As a result, we still need to compile __ashlti3, __ashrti3, __lshrti3, and perhaps others, on PPC32 (which is not __LP64__); I don't know about other platforms.
>
>   -Hal
>

I added __ppc_ to the int_types #ifdef and was able to build for arm, 
armeb, i386, mips, mipsel, ppc, and x86_64.

-Rich



More information about the llvm-commits mailing list