OSDN Git Service

AMDGPU: Fix i1 fp_to_int
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 22 Jul 2016 17:01:21 +0000 (17:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 22 Jul 2016 17:01:21 +0000 (17:01 +0000)
commit7488ab311446fd5487ff67fbcab75eb37c93df28
tree0cbb40a8433327d310c2e2dc02ed107b69513dcd
parent7c8be6eeb7ca80fd0f5cf61ea305bf85469e1df8
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/trunk@276435 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