This is an archive of the discontinued LLVM Phabricator instance.

[VE] Add cast to/from fp128 patterns
ClosedPublic

Authored by kaz7 on Oct 19 2020, 3:23 AM.

Details

Summary

Add cast to/from fp128 patterns. Clean other cast patterns too.
Update a regression test by adding missing tests.

Diff Detail

Event Timeline

kaz7 created this revision.Oct 19 2020, 3:23 AM
kaz7 requested review of this revision.Oct 19 2020, 3:23 AM
simoll accepted this revision.Oct 19 2020, 5:21 AM
simoll added inline comments.
llvm/test/CodeGen/VE/cast.ll
152

I guess folding the add.w.sx with the already sign-extending cvt.w.d.sx.rz above would be an optimization (custom DAG combine?).

This revision is now accepted and ready to land.Oct 19 2020, 5:21 AM
kaz7 added inline comments.Oct 19 2020, 5:35 AM
llvm/test/CodeGen/VE/cast.ll
152

Yes. The latest internal develop branch has this issue also, though. Need to track theses issues too.

This revision was automatically updated to reflect the committed changes.