Fix bug while building FP16 constant vectors for AArch64
authorPirama Arumuga Nainar <pirama@google.com>
Tue, 17 Mar 2015 23:10:29 +0000 (23:10 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Tue, 17 Mar 2015 23:10:29 +0000 (23:10 +0000)
commit5e15d64948bd00cd2752fcd97ce7adf4a5c9b051
tree27efe40041e90eb52ea0d9b219875488dfeec343
parentf99fa6d5fd3c176ffdd9e723fe97d640667b34e6
Fix bug while building FP16 constant vectors for AArch64

Summary: Building FP16 constant vectors caused the FP16 data to be bitcast to i64.  This patch creates a BITCAST node with the correct value, and adds a test to verify correct handling.

Reviewers: mcrosier

Reviewed By: mcrosier

Subscribers: mcrosier, jmolloy, ab, srhines, llvm-commits, rengolin, aemerson

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

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