[ARM] Allow half types in ConstantPool
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 13 Feb 2018 15:34:09 +0000 (15:34 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 13 Feb 2018 15:34:09 +0000 (15:34 +0000)
commitf4a7fa7bbef6ba0fabd9de99eb18ffa5f12b624f
treee9b1fddabaee9dc32e32283c7b5a213c434b39c7
parentbb295e0d9b9ea448b73fa8dde8ec385e3b3eb38e
[ARM] Allow half types in ConstantPool

Change ARMConstantIslandPass to:
- accept f16 literals as litpool entries,
- if the litpool needs to be inserted in the middle of a big block, then we
  need to 4-byte align the next instruction in ARM mode.

Differential Revision: https://reviews.llvm.org/D42784

llvm-svn: 325012
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/test/CodeGen/ARM/fp16-litpool-arm.mir [new file with mode: 0644]
llvm/test/CodeGen/ARM/fp16-litpool-thumb.mir [new file with mode: 0644]