[llvm-commits] [PATCH] PowerPC: Expand FSRQT for vector types
Alex Rosenberg
alexr at leftfield.org
Thu Nov 1 22:28:06 PDT 2012
On Nov 1, 2012, at 3:18 AM, Adhemerval Zanella <azanella at linux.vnet.ibm.com> wrote:
> The idea of the patch is to avoid llvm fail on altivec-enabled hosts for the related
> llvm.sqrt.* calls (currently llvm cannot select the calls with '-mattr=+altivec'). And
> it has not change in 2.06 for altivec set, although VSX provides now a sqrt for
> vector types.
You need to check if the subtarget hasFSQRT() is true.
Alex
> On 10/31/2012 08:23 PM, Alex Rosenberg wrote:
>> fsqrt and fsqrts are optional instructions of the "general-purpose" set, not architecturally-related to AltiVec (unless this changed in 2.06 or later, which I haven't read closely).
>>
>> Sent from my iPad
>>
>> On Oct 30, 2012, at 10:55 AM, Adhemerval Zanella <azanella at linux.vnet.ibm.com> wrote:
>>
>>> This patch expands the FSQRT operations for vector types when altivec is
>>> enabled. Without it a call to sqrt operation in vector causes a compiler
>>> failure.
>>>
>>> Any tips, suggestions, comments?
>>>
>>> <0002-PowerPC-Expand-FSRQT-for-vector-types.patch>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
> --
> Adhemerval Zanella Netto
> Software Engineer
> Linux Technology Center Brazil
> Toolchain / GLIBC on Power Architecture
> azanella at linux.vnet.ibm.com / azanella at br.ibm.com
> +55 61 8642-9890
More information about the llvm-commits
mailing list