AMDGPU/SI: Select mad patterns to v_mac_f32
authorTom Stellard <thomas.stellard@amd.com>
Mon, 13 Jul 2015 15:47:57 +0000 (15:47 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 13 Jul 2015 15:47:57 +0000 (15:47 +0000)
commitf5be357d37b40602ad91fd6d77c855df8bb029fd
tree47e90b42364c5f3e9bf3d9abd33351dd29a47952
parentaf3e4a2f2f4cb233ed081bf0ab5baead0b042158
AMDGPU/SI: Select mad patterns to v_mac_f32

The two-address instruction pass will convert these back to v_mad_f32
if necessary.

Differential Revision: http://reviews.llvm.org/D11060

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242038 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
lib/Target/AMDGPU/SIFoldOperands.cpp
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstrInfo.h
lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/SIInstructions.td
lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/fmuladd.ll
test/CodeGen/AMDGPU/llvm.amdgpu.lrp.ll
test/CodeGen/AMDGPU/mad-combine.ll
test/CodeGen/AMDGPU/mad-sub.ll
test/CodeGen/AMDGPU/madak.ll
test/CodeGen/AMDGPU/madmk.ll
test/CodeGen/AMDGPU/v_mac.ll [new file with mode: 0644]