]> granicus.if.org Git - llvm/commit
Merging r339533:
authorHans Wennborg <hans@hanshq.net>
Thu, 16 Aug 2018 09:58:56 +0000 (09:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 16 Aug 2018 09:58:56 +0000 (09:58 +0000)
commit0caaac00354f81b19bdd453719e9ae2a2ae8e791
treec8b2c462a3e2daebddb067dbaaa9d918f3fbbd91
parent8684e0b4d359c6c19b4a83a148619b092d69784a
Merging r339533:
------------------------------------------------------------------------
r339533 | ctopper | 2018-08-13 07:26:49 +0200 (Mon, 13 Aug 2018) | 5 lines

[SelectionDAG] In PromoteFloatRes_BITCAST, insert a bitcast before the fp16_to_fp in case the input type isn't an i16.

The bitcast can be further legalized as needed.

Fixes PR38533.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@339855 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
test/CodeGen/X86/pr38533.ll [new file with mode: 0644]