Convert v4f16 and v8f16 to corresponding f32 vectors before doing the
conversion to int.
Add tests for v4f16, v8f16.
Paths
| Differential D14936
Fix fptosi, fptoui from f16 vectors to i8, i16 vectors ClosedPublic Authored by pirama on Nov 23 2015, 2:24 PM.
Details Summary Convert v4f16 and v8f16 to corresponding f32 vectors before doing the Add tests for v4f16, v8f16.
Diff Detail Event Timelinepirama updated this object. jmolloy edited edge metadata. Comment ActionsHi Pirama, Why are we only doing this for v4f16 and v8f16? What about oversized vectors - is there any specific reason you're excluding these? I'm not even sure oversized/undersized vectors can get this far, but it seems strange to whitelist. I also think this code should be sunk down into LowerVectorFP_TO_INT. Cheers, James This revision now requires changes to proceed.Dec 8 2015, 1:49 AM pirama edited edge metadata. Comment ActionsRemoved vector length checks and refactored as suggested. Larger vectors indeed don't reach here. But it is still better to do the promotion unconditionally. jmolloy edited edge metadata. Comment ActionsThis now looks good to me. Thanks for making those changes! This revision is now accepted and ready to land.Dec 10 2015, 2:50 AM Closed by commit rL255263: Fix fptosi, fptoui from f16 vectors to i8, i16 vectors (authored by pirama). · Explain WhyDec 10 2015, 9:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 40980 lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/fp16-v4-instructions.ll
test/CodeGen/AArch64/fp16-v8-instructions.ll
|