This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add integer min/max intrinsic tests. NFC
ClosedPublic

Authored by craig.topper on May 4 2022, 11:21 AM.

Details

Summary

Add basic tests and some tests for same operands and all undef
operands inspired by PR55271.

i32 is umin/umax is using signext to match RISC-V ABI. i8/i16 are
using signext/zeroext to match the operation.

Diff Detail

Event Timeline

craig.topper created this revision.May 4 2022, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 11:21 AM
craig.topper requested review of this revision.May 4 2022, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 11:21 AM

Wrap RUN lines to 80 columns

RKSimon accepted this revision.May 5 2022, 2:00 AM

LGTM - you may want to consider start adding TTI costs/tests in Analysis/CostModel for these at some point.

This revision is now accepted and ready to land.May 5 2022, 2:00 AM
This revision was landed with ongoing or failed builds.May 5 2022, 9:40 AM
This revision was automatically updated to reflect the committed changes.