[AArch64][SVE] Asm: Support for CNT(B|H|W|D) and CNTP instructions.
authorSander de Smalen <sander.desmalen@arm.com>
Mon, 9 Jul 2018 15:22:08 +0000 (15:22 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Mon, 9 Jul 2018 15:22:08 +0000 (15:22 +0000)
commitd3efb59f29a77625756adefa230177067c4083e9
tree00b976e83a421997ac381bface67c0d12dd55916
parentb467233d8bde685f9e57af760dcd557390861c47
[AArch64][SVE] Asm: Support for CNT(B|H|W|D) and CNTP instructions.

This patch adds support for the following instructions:

  CNTB CNTH - Determine the number of active elements implied by
  CNTW CNTD   the named predicate constant, multiplied by an
              immediate, e.g.

                cnth x0, vl8, #16

  CNTP      - Count active predicate elements, e.g.
                cntp  x0, p0, p1.b

              counts the number of active elements in p1, predicated
              by p0, and stores the result in x0.

llvm-svn: 336552
12 files changed:
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/MC/AArch64/SVE/cntb-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntb.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntd-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntd.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cnth-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cnth.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntp-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntp.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntw-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/cntw.s [new file with mode: 0644]