This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Support vector comparision for RVP
Needs ReviewPublic

Authored by Jim on Jun 4 2021, 9:59 PM.

Details

Summary

Add codegen patterns for vector comparision and expand its unsupported CCs.

Diff Detail

Event Timeline

Jim created this revision.Jun 4 2021, 9:59 PM
Jim requested review of this revision.Jun 4 2021, 9:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 9:59 PM
Jim edited the summary of this revision. (Show Details)Jun 4 2021, 10:04 PM
craig.topper added inline comments.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
816

This comment isn't entirely correct. NE does not use swapped-operands.

llvm/test/CodeGen/RISCV/rvp/vector-cmp.ll
49–50

Why isn't this using xori?

Jim updated this revision to Diff 350225.Jun 7 2021, 3:12 AM

Update comments and tests.

addi+xor has been combined as xori.

Jim marked 2 inline comments as done.Jun 7 2021, 3:13 AM
Jim added reviewers: craig.topper, frasercrmck, jrtc27.