[PATCH] D62140: [AArch64][SVE2] Asm: add various bitwise shift instructions

Cullen Rhodes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 07:09:46 PDT 2019


c-rhodes created this revision.
c-rhodes added reviewers: sdesmalen, SjoerdMeijer, rovka.
Herald added subscribers: kristof.beyls, tschuett, javed.absar.
Herald added a project: LLVM.
c-rhodes added a parent revision: D62130: [AArch64][SVE2] Asm: add saturating add/sub instructions.

This patch adds support for the SVE2 saturating/rounding bitwise shift
left (predicated) group of instructions:

- SRSHL, URSHL, SRSHLR, URSHLR, SQSHL, UQSHL, SQRSHL, UQRSHL, SQSHLR, UQSHLR, SQRSHLR, UQRSHLR

Immediate forms of the SQSHL and UQSHL instructions are also added to
the existing SVE bitwise shift by immediate (predicated) group, as well
as three new instructions SRSHR/URSHR/SQSHLU. The new instructions in
this group are encoded similarly and are implemented using the same
TableGen class with a minimal change (1 bit in encoding).

The specification can be found here:
https://developer.arm.com/docs/ddi0602/latest


Repository:
  rL LLVM

https://reviews.llvm.org/D62140

Files:
  lib/Target/AArch64/AArch64SVEInstrInfo.td
  lib/Target/AArch64/SVEInstrFormats.td
  test/MC/AArch64/SVE2/sqrshl-diagnostics.s
  test/MC/AArch64/SVE2/sqrshl.s
  test/MC/AArch64/SVE2/sqrshlr-diagnostics.s
  test/MC/AArch64/SVE2/sqrshlr.s
  test/MC/AArch64/SVE2/sqshl-diagnostics.s
  test/MC/AArch64/SVE2/sqshl.s
  test/MC/AArch64/SVE2/sqshlr-diagnostics.s
  test/MC/AArch64/SVE2/sqshlr.s
  test/MC/AArch64/SVE2/sqshlu-diagnostics.s
  test/MC/AArch64/SVE2/sqshlu.s
  test/MC/AArch64/SVE2/srshl-diagnostics.s
  test/MC/AArch64/SVE2/srshl.s
  test/MC/AArch64/SVE2/srshlr-diagnostics.s
  test/MC/AArch64/SVE2/srshlr.s
  test/MC/AArch64/SVE2/srshr-diagnostics.s
  test/MC/AArch64/SVE2/srshr.s
  test/MC/AArch64/SVE2/uqrshl-diagnostics.s
  test/MC/AArch64/SVE2/uqrshl.s
  test/MC/AArch64/SVE2/uqrshlr-diagnostics.s
  test/MC/AArch64/SVE2/uqrshlr.s
  test/MC/AArch64/SVE2/uqshl-diagnostics.s
  test/MC/AArch64/SVE2/uqshl.s
  test/MC/AArch64/SVE2/uqshlr-diagnostics.s
  test/MC/AArch64/SVE2/uqshlr.s
  test/MC/AArch64/SVE2/urshl-diagnostics.s
  test/MC/AArch64/SVE2/urshl.s
  test/MC/AArch64/SVE2/urshlr-diagnostics.s
  test/MC/AArch64/SVE2/urshlr.s
  test/MC/AArch64/SVE2/urshr-diagnostics.s
  test/MC/AArch64/SVE2/urshr.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62140.200272.patch
Type: text/x-patch
Size: 82882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190520/d1343d07/attachment-0001.bin>


More information about the llvm-commits mailing list