[AArch64] Add nvcast patterns for v4f16 and v8f16
authorPirama Arumuga Nainar <pirama@google.com>
Thu, 23 Apr 2015 17:32:25 +0000 (17:32 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Thu, 23 Apr 2015 17:32:25 +0000 (17:32 +0000)
commit745615ca0059ac89b4871d8426f57a9e6f283fa7
tree0de7bc7c35f0ee066a80b23b210419ae81fb536f
parentb18815354d9313810f42f8bca688ac5d3f93b02c
[AArch64] Add nvcast patterns for v4f16 and v8f16

Summary:
Constant stores of f16 vectors can create NvCast nodes from various
operand types to v4f16 or v8f16 depending on patterns in the stored
constants.  This patch adds nvcast rules with v4f16 and v8f16 values.

AArchISelLowering::LowerBUILD_VECTOR has the details on which constant
patterns generate the nvcast nodes.

Reviewers: jmolloy, srhines, ab

Subscribers: rengolin, aemerson, llvm-commits

Differential Revision: http://reviews.llvm.org/D9201

llvm-svn: 235610
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/fp16-vector-nvcast.ll [new file with mode: 0644]