R600: Improve custom lowering of select_cc
authorTom Stellard <thomas.stellard@amd.com>
Fri, 8 Mar 2013 15:37:09 +0000 (15:37 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 8 Mar 2013 15:37:09 +0000 (15:37 +0000)
commit1454cb86be54a8703fca396752be71c50c805b88
tree4db8262b78df8a49e769c1f096ba9d6c948331b4
parentd41650590669bf561d8f3bcae1204f11354954dc
R600: Improve custom lowering of select_cc

Two changes:
1. Prefer SET* instructions when possible
2. Handle the CND*_INT case with floating-point args

Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/R600Instructions.td
test/CodeGen/R600/fcmp-cnde-int-args.ll
test/CodeGen/R600/selectcc-opt.ll [new file with mode: 0644]