R600/SI: Use mad for fsub + fmul
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Aug 2014 16:01:14 +0000 (16:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Aug 2014 16:01:14 +0000 (16:01 +0000)
commitf4d57e78741840303b5fb49909c5344f41556110
treed6b8629433ee5ffe392d7127ebda609da51ddb1e
parent1e77dc84c49eebcd440ed79f6180dbabf6e81cf8
R600/SI: Use mad for fsub + fmul

We can use a negate source modifier to match
this for fsub.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
lib/Target/R600/AMDGPUInstrInfo.td
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/mad-sub.ll [new file with mode: 0644]