R600: Allow ftrunc
authorTom Stellard <thomas.stellard@amd.com>
Fri, 20 Dec 2013 05:11:55 +0000 (05:11 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 20 Dec 2013 05:11:55 +0000 (05:11 +0000)
commit37ee312f7766714e9fcb0b848a13c5cf456fd0b7
tree57251270c76c3f4115354ac1451652b26ac6d122
parent658537c710e399aa4e9c4ca3cd2f8211bc240560
R600: Allow ftrunc

v2: Add ftrunc->TRUNC pattern instead of replacing int_AMDGPU_trunc
v3: move ftrunc pattern next to TRUNC definition, it's available since R600

Patch By: Jan Vesely

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/R600Instructions.td
test/CodeGen/R600/llvm.trunc.ll [new file with mode: 0644]