[PATCH] D49987: [ARM] Allow half-precision FP softening

Mikhail Maltsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 07:22:50 PDT 2018


miyuki added a comment.

I tried compiling a `fadd <4 x half>` and it actually does not work: the type gets legalized into `v4i16` and we get an unknown libcall. So, the problem is that we need to soften v4fp16 to v4i16 when passing it as a function parameter, but at the same time expand to f32 when performing arithmetics on it. Do you have any suggestion how to implement this correctly? Do any other targets face a similar problem?


https://reviews.llvm.org/D49987





More information about the llvm-commits mailing list