R600: Add support for SET*_DX10 instructions
authorTom Stellard <thomas.stellard@amd.com>
Thu, 7 Feb 2013 14:02:35 +0000 (14:02 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 7 Feb 2013 14:02:35 +0000 (14:02 +0000)
commit1234c9be42b4ebd4b398df461123205dccf3706c
treed328469268473b89e100f52577a0dbfe6f244eb5
parent2a77cf7f47900c8df55cfea794936006b494e943
R600: Add support for SET*_DX10 instructions

These instructions compare two floating point values and return an
integer true (-1) or false (0) value.

When compiling code generated by the Mesa GLSL frontend, the SET*_DX10
instructions save us four instructions for most branch decisions that
use floating-point comparisons.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/R600Instructions.td
test/CodeGen/R600/fcmp.ll
test/CodeGen/R600/set-dx10.ll [new file with mode: 0644]
test/CodeGen/R600/unsupported-cc.ll