This is an archive of the discontinued LLVM Phabricator instance.

[VP][RISCV] Add vp.abs and RISC-V support.
ClosedPublic

Authored by fakepaper56 on Jan 4 2023, 11:48 PM.

Details

Summary

RISC-V uses ISD::ABS lower method (abs x) -> (smax_vl x (sub_vl 0, x)) for ISD::VP_ABS.

Diff Detail

Event Timeline

fakepaper56 created this revision.Jan 4 2023, 11:48 PM
fakepaper56 requested review of this revision.Jan 4 2023, 11:48 PM

Use false value for is_int_min_poison operand to sync with sdnode tests.

This revision is now accepted and ready to land.Jan 5 2023, 8:53 AM
This revision was landed with ongoing or failed builds.Jan 5 2023, 11:18 PM
This revision was automatically updated to reflect the committed changes.