This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Correct the setcc in vp.floor/ceil/round/roundeven lowering.
ClosedPublic

Authored by craig.topper on Oct 3 2022, 6:52 PM.

Details

Summary

We want to emit a masked setcc that preserves zeros in all of the bits
where the original mask is zero. To do this we need to pass the original
mask as the passthru operand as well. Otherwise, we'll use the mask agnostic
policy and replace the zeros with 1s on some CPUs.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 3 2022, 6:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 3 2022, 6:52 PM
craig.topper requested review of this revision.Oct 3 2022, 6:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 3 2022, 6:52 PM
This revision is now accepted and ready to land.Oct 3 2022, 7:33 PM
This revision was landed with ongoing or failed builds.Oct 3 2022, 9:10 PM
This revision was automatically updated to reflect the committed changes.