This is an archive of the discontinued LLVM Phabricator instance.

[ARM] FP16: support the vector vmin and vmax variants
ClosedPublic

Authored by SjoerdMeijer on Aug 3 2018, 3:43 AM.

Diff Detail

Event Timeline

SjoerdMeijer created this revision.Aug 3 2018, 3:43 AM

SelectionDAGBuilder::visitSelect can also generate FMINNAN etc.; please add testcases.

lib/Target/ARM/ARMISelLowering.cpp
1140

Maybe not actually a part of this patch, but how does this work without hasFullFP16()?

Added tests for visitSelect.

SjoerdMeijer added inline comments.Aug 7 2018, 7:10 AM
lib/Target/ARM/ARMISelLowering.cpp
1140

At the moment, it doesn't unfortunately and we get:

LLVM ERROR: Do not know how to split the result of this operator!

So yes, we need to address that too.

This revision is now accepted and ready to land.Aug 7 2018, 11:20 AM
This revision was automatically updated to reflect the committed changes.