[llvm-commits] [PATCH] ARM: Custom lower v2f32 = fp_round to fix crash with NEON

Eli Friedman eli.friedman at gmail.com
Wed Nov 14 17:58:42 PST 2012


On Tue, Nov 13, 2012 at 11:24 PM, Pete Couperus <pjcoup at gmail.com> wrote:
> Hello,
>
> Lowering "fptrunc <2 x double> %a to <2 x float>" is broken on ARM with
> NEON.
> This patch custom lowers this conversion using two single element vcvt's.
> This fixes the following PRs.
>
> http://llvm.org/bugs/show_bug.cgi?id=12540
> http://llvm.org/bugs/show_bug.cgi?id=13964
>
> Please review!
> Thanks.

Does "setOperationAction(ISD::FP_ROUND, MVT::v2f32, Expand)" not do
the right thing here?

-Eli



More information about the llvm-commits mailing list