This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][AArch64] Add support for @llvm.ceil
ClosedPublic

Authored by paquette on Dec 18 2018, 4:03 PM.

Details

Summary

This adds a G_FCEIL generic instruction and uses it in AArch64. This adds selection for floating point ceil where it has a dedicated instruction. Other cases aren't handled yet for the sake of simplicity.

It updates the relevant gisel tests and adds a select-ceil test. It also adds a check to arm64-vcvt.ll which ensures that we don't fall back when we run into one of the relevant cases.

Diff Detail

Event Timeline

paquette created this revision.Dec 18 2018, 4:03 PM
aemerson accepted this revision.Dec 19 2018, 10:01 AM

LGTM. In general for IR translator tests we don't need to check for every type combination if it's a simple 1-1 mapping, but no need to change the patch.

This revision is now accepted and ready to land.Dec 19 2018, 10:01 AM