R600/SI: Don't promote f32 select to i32
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 02:30:29 +0000 (02:30 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 02:30:29 +0000 (02:30 +0000)
commit3d1ca355c4b357d981ee7f32940d29020279cab6
tree28dde919c9c0a6209cfb9e736deb2704a6fbe04c
parentd948b98cba54084d0473708a8b85228489dad842
R600/SI: Don't promote f32 select to i32

This is nice for the instruction patterns, but it complicates
min / max matching. The select doesn't have the correct type and would
require looking through the bitcasts for the real float operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224092 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/seto.ll
test/CodeGen/R600/setuo.ll
test/CodeGen/R600/sint_to_fp.ll
test/CodeGen/R600/uint_to_fp.ll