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)
commite6ccd7b66a55363bbc57a7efcff1c514081a6269
tree9ee8b7e60ee10b6f6f70f030d323277ec085ab80
parent5411d0510cd8d97301adadca34b8831204ecc6c5
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

llvm-svn: 255072
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/fp16-v4-instructions.ll
llvm/test/CodeGen/AArch64/fp16-v8-instructions.ll