]> granicus.if.org Git - llvm/commit
Merging r323582:
authorHans Wennborg <hans@hanshq.net>
Tue, 30 Jan 2018 10:19:03 +0000 (10:19 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 30 Jan 2018 10:19:03 +0000 (10:19 +0000)
commite57fcaa435b9843091f04661ac55f813601396ad
tree3e6af8f9e6888bf16dd3342cb0fb897c4a0e8e8e
parent91f08212d67ff9962bdf3674a78a608d7db063e2
Merging r323582:
------------------------------------------------------------------------
r323582 | aemerson | 2018-01-27 08:07:20 +0100 (Sat, 27 Jan 2018) | 6 lines

[GlobalISel][Legalizer] Convert the FP constants to the right APFloat type for G_FCONSTANT.

We weren't converting the immediate ConstantFP during legalization, which caused
the wrong bit patterns to be emitted for half type FP constants.

Fixes PR36106.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@323742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/legalize-constant.mir