R600/SI: Fix div_scale intrinsic.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Jun 2014 18:28:28 +0000 (18:28 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Jun 2014 18:28:28 +0000 (18:28 +0000)
commitf2b0aebb8af0c4161171ac5afc21b6da171b1f43
tree553a9f9c72a244fdd9b639755d12b26d7cde9bd9
parent1f83db17c0f931217ff7af961a4fd50990344117
R600/SI: Fix div_scale intrinsic.

The operand that must match one of the others does matter,
and implement selecting for it.

llvm-svn: 211523
llvm/include/llvm/IR/IntrinsicsR600.td
llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/R600/AMDGPUISelLowering.cpp
llvm/lib/Target/R600/SIInstrInfo.td
llvm/lib/Target/R600/SIInstructions.td
llvm/test/CodeGen/R600/llvm.AMDGPU.div_scale.ll