R600: Implement float to long/ulong
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 10 Jul 2014 22:40:21 +0000 (22:40 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 10 Jul 2014 22:40:21 +0000 (22:40 +0000)
commit865527a09b40888d5176a6800ecb602f1ff6d353
tree20ad3d901a0ed3d79a387827f6c74f86c44c1824
parentbb917c2f8a0eb5cf78091432bca1ffc32c241ffe
R600: Implement float to long/ulong

Use alg. from LegalizeDAG.cpp
Move Expand setting to SIISellowering

v2: Extend existing tests instead of creating new ones
v3: use separate LowerFPTOSINT function
v4: use TargetLowering::expandFP_TO_SINT
    add comment about using FP_TO_SINT for uints

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <tom@stellard.net>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212773 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/fp_to_sint.ll
test/CodeGen/R600/fp_to_sint_i64.ll [deleted file]
test/CodeGen/R600/fp_to_uint.ll