OSDN Git Service

Remove unsafe AssertZext after promoting result of FP_TO_FP16
authorPirama Arumuga Nainar <pirama@google.com>
Thu, 24 Mar 2016 14:06:03 +0000 (14:06 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Thu, 24 Mar 2016 18:35:30 +0000 (11:35 -0700)
commit2d36ca48fac1c897182807d77b90b74c44ea6cd3
treedd3031c3f4c9f738ae2025fb92663a1d6a6a26ce
parent54319a9ff51f01a78b8b975a2eef0b8d52f9efe6
Remove unsafe AssertZext after promoting result of FP_TO_FP16

Summary:
Some target lowerings of FP_TO_FP16, for instance ARM's vcvtb.f16.f32
instruction, do not guarantee that the top 16 bits are zeroed out.
Remove the unsafe AssertZext and add tests to exercise this.

Reviewers: jmolloy, sbaranga, kristof.beyls, aadg

Subscribers: llvm-commits, srhines, aemerson

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264285 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/ARM/fp16-v3.ll