This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] Add ptest intrinsics
ClosedPublic

Authored by c-rhodes on Jan 8 2020, 6:40 AM.

Details

Summary

Implements the following intrinsics:

  • @llvm.aarch64.sve.ptest.any
  • @llvm.aarch64.sve.ptest.first
  • @llvm.aarch64.sve.ptest.last

Diff Detail

Event Timeline

c-rhodes created this revision.Jan 8 2020, 6:40 AM
Herald added a project: Restricted Project. · View Herald Transcript
efriedma accepted this revision.Jan 10 2020, 6:17 PM

LGTM with one minor request.

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
10911

Could you add a testcase where the ptest feeds a compare/branch, to show that combination works as expected?

This revision is now accepted and ready to land.Jan 10 2020, 6:17 PM
c-rhodes updated this revision to Diff 237954.Jan 14 2020, 5:44 AM

Included a test we have downstream of a ptest feeding a compare/branch to address Eli's comment.

This revision was automatically updated to reflect the committed changes.