Define selection for v4f16, v8f16 scalar_to_vector
authorPirama Arumuga Nainar <pirama@google.com>
Tue, 8 Dec 2015 23:07:06 +0000 (23:07 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Tue, 8 Dec 2015 23:07:06 +0000 (23:07 +0000)
commit46994bcf9c7e4f7f51567b15b5b2161b106dbeca
tree5b225cd686ebfcc1bdc4e1d943633471db2e8087
parent1a2a86e8cde272e37b7e1f15e24746df9ff71014
Define selection for v4f16, v8f16 scalar_to_vector

Summary:
This fixes failure when trying to select
    insertelement <4 x half> undef, half %a, i64 0
which gets transformed to a scalar_to_vector node.

The accompanying v4 and v8 tests fail instruction selection without this
patch.

Reviewers: ab, jmolloy

Subscribers: srhines, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/fp16-v4-instructions.ll
test/CodeGen/AArch64/fp16-v8-instructions.ll