OSDN Git Service

[CodeGen] Promote FMINNAN/FMAXNAN like other binops.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 31 May 2016 18:50:25 +0000 (18:50 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Wed, 8 Jun 2016 19:53:50 +0000 (12:53 -0700)
commit72bbf14fe49e57a011ce3c628d6dca0aa603bd11
tree63bb0808643290884757dee1a391d25e0f40c535
parent2d36ca48fac1c897182807d77b90b74c44ea6cd3
[CodeGen] Promote FMINNAN/FMAXNAN like other binops.

We think it's OK to generate half fminnan because it's legal for the
transform-to type (f32; r245196). However, PromoteFloatRes was missing
the case; simply promote like the other binops, including minnum.

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