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)
commite06163a9a6714880ad2681d86ca13657f67aee0c
tree5ddd47a2dae69ca53249bf6cf8509b8852bae4d8
parent6d867e8d4da16d6d5f4c611a9eadcaa167699c1a
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.

llvm-svn: 174609
llvm/lib/Target/R600/R600ISelLowering.cpp
llvm/lib/Target/R600/R600Instructions.td
llvm/test/CodeGen/R600/fcmp.ll
llvm/test/CodeGen/R600/set-dx10.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/unsupported-cc.ll