[PATCH] [AArch64] Add patterns to match normal shift nodes: shl, sra, srl

Hao Liu Hao.Liu at arm.com
Thu Dec 19 02:12:36 PST 2013


Hi t.p.northover,

Hi Tim and reviewers,

This patch fixes the problem that we can't select shl/sra/srl nodes. Match shl to USHL instructions. Match sra/srl to NEG and SSHL/USHL instructions (negative shift amounts for SSHL/USHL means right shfit). This solution is the same as ARM backend.

Code review. Please.

Thanks,
-Hao

http://llvm-reviews.chandlerc.com/D2439

Files:
  lib/Target/AArch64/AArch64InstrNEON.td
  test/CodeGen/AArch64/neon-shl-ashr-lshr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2439.1.patch
Type: text/x-patch
Size: 9050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131219/c19e39b9/attachment.bin>


More information about the llvm-commits mailing list