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)
commited143b7c0cca568a7dc35e91d2e37207f79b8d76
tree04012227cf8222bd32367926f86520c2277c7496
parentd88f5b71c79ae77a41218ad3e9c5491caa2c766f
R600/SI: Fix div_scale intrinsic.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211523 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsR600.td
lib/Target/R600/AMDGPUISelDAGToDAG.cpp
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/llvm.AMDGPU.div_scale.ll