This is an archive of the discontinued LLVM Phabricator instance.

[VP] vp.fptosi cast intrinsic and docs
ClosedPublic

Authored by simoll on Feb 11 2022, 2:53 AM.

Diff Detail

Event Timeline

simoll created this revision.Feb 11 2022, 2:53 AM
simoll requested review of this revision.Feb 11 2022, 2:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2022, 2:53 AM
craig.topper added inline comments.Feb 11 2022, 10:19 AM
llvm/include/llvm/IR/Intrinsics.td
1529

Should we have a Verifier check that the number of elements match? The equivalent constrained intrinsics check that.

simoll updated this revision to Diff 408417.Feb 14 2022, 7:36 AM
simoll marked an inline comment as done.

Add verifier code and a verifier test for mismatching vector lengths.

craig.topper added inline comments.Feb 14 2022, 9:47 AM
llvm/test/Verifier/vp-intrinsics-illformed.ll
1 ↗(On Diff #408417)

Picking a tests at random. It looks like they typically do something like

; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s

and then check the error message. Can we do that here?

simoll updated this revision to Diff 408839.Feb 15 2022, 5:40 AM
simoll marked an inline comment as done.

Test checks verifier error message now

This revision is now accepted and ready to land.Feb 15 2022, 7:44 AM
This revision was landed with ongoing or failed builds.Feb 15 2022, 9:18 AM
This revision was automatically updated to reflect the committed changes.