Merging r276435:
authorHans Wennborg <hans@hanshq.net>
Thu, 28 Jul 2016 23:29:33 +0000 (23:29 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 28 Jul 2016 23:29:33 +0000 (23:29 +0000)
commit86c801f95b1316c3d939e2ad80abccdda44464f8
tree7f36277437daa9f126eac571dd91ea973ef5d939
parent4444fc423b9f3c85c05ab90d18d34d2ef12abffd
Merging r276435:
------------------------------------------------------------------------
r276435 | arsenm | 2016-07-22 10:01:21 -0700 (Fri, 22 Jul 2016) | 4 lines

AMDGPU: Fix i1 fp_to_int

R600's i1 fp_to_uint selected but was incorrect according to
what instcombine constant folds to.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@277082 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUInstructions.td
lib/Target/AMDGPU/R600ISelLowering.cpp
lib/Target/AMDGPU/R600ISelLowering.h
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/fp_to_sint.f64.ll
test/CodeGen/AMDGPU/fp_to_sint.ll
test/CodeGen/AMDGPU/fp_to_uint.f64.ll
test/CodeGen/AMDGPU/fp_to_uint.ll