This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Define vmerge/vfmerge intrinsics.
ClosedPublic

Authored by khchen on Dec 21 2020, 9:33 PM.

Details

Summary

Define vmerge/vfmerge intrinsics and lower to V instructions.

Include support for vector-vector vfmerge by vmerge.vvm.

We work with @rogfer01 from BSC to come out this patch.

Diff Detail

Event Timeline

khchen created this revision.Dec 21 2020, 9:33 PM
khchen requested review of this revision.Dec 21 2020, 9:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2020, 9:34 PM
khchen updated this revision to Diff 313244.Dec 21 2020, 10:06 PM

update typo

craig.topper added inline comments.Dec 22 2020, 10:43 AM
llvm/test/CodeGen/RISCV/rvv/vfmerge-rv32.ll
233

why would the scalar argument be an 'a' register? Shouldn't it always be ft or fa?

khchen updated this revision to Diff 313465.Dec 22 2020, 6:23 PM

address @craig.topper's comment.

This revision is now accepted and ready to land.Dec 22 2020, 6:37 PM
This revision was automatically updated to reflect the committed changes.