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)
commit2cb62ce2a0a532a4feac3fa7d17d7452dfb14997
tree6294e50171cee88998e8b521a1f6a991f8139de9
parenteca89d283efffa36054f0ecbd88a14b4b8610c71
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>
llvm-svn: 212773
llvm/lib/Target/R600/AMDGPUISelLowering.cpp
llvm/lib/Target/R600/R600ISelLowering.cpp
llvm/lib/Target/R600/SIISelLowering.cpp
llvm/test/CodeGen/R600/fp_to_sint.ll
llvm/test/CodeGen/R600/fp_to_sint_i64.ll [deleted file]
llvm/test/CodeGen/R600/fp_to_uint.ll