[PATCH] D110523: [AArch64][SVE] Fix extract_subvector patterns for unpacked fp types.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 27 00:07:55 PDT 2021


sdesmalen created this revision.
sdesmalen added a reviewer: david-arm.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The patterns added in D110163 <https://reviews.llvm.org/D110163> were incorrect, since it used the wrong
element widths for its shuffles.

Example for nxv2f16 extract_subvector(nxv8f16 %in, 6):
<a|b|c|d|e|f|g|h>

      ^^^
  extract g and h.

> UUNPKHI .h -> .s results in:
==============================

<e  |f  |g  |h  >

> UUNPKHI .s -> .d results in:
==============================

<g      |h      >


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110523

Files:
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/test/CodeGen/AArch64/sve-extract-scalable-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110523.375157.patch
Type: text/x-patch
Size: 8817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210927/847ffbd2/attachment.bin>


More information about the llvm-commits mailing list