[llvm-dev] lower 64 bits constant

Xiangyang Guo via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 2 11:59:10 PST 2015


Thanks for your reply.

Yes, f64 is valid type. "setOperationAction(ISD::ConstantFP, MVT::f64,
Legal)" does the trick.

Regards,

Xiangyang

2015-12-02 13:36 GMT-05:00 Krzysztof Parzyszek via llvm-dev <
llvm-dev at lists.llvm.org>:

> On 12/2/2015 12:30 PM, Xiangyang Guo via llvm-dev wrote:
>
>>
>> GRWideRegs can be f64 and i64. However, the 'const-long' works while the
>> 'const-double' doesn't work. From the -debug log, it seems "f64 =
>> ConstantFP" is replaced by "f64,ch = load" and this is where the error
>> happens. Can anyone tell me why this happens and how to make this work?
>>
>> Any suggestion is appreciated.
>>
>
> Is f64 a valid type for GRWideRegs?
>
> -Krzysztof
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151202/ab8bc62d/attachment.html>


More information about the llvm-dev mailing list