R600/SI: Use immediates offsets for SMRD instructions whenever possible
authorTom Stellard <thomas.stellard@amd.com>
Thu, 6 Feb 2014 18:36:34 +0000 (18:36 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 6 Feb 2014 18:36:34 +0000 (18:36 +0000)
commit22274378d5ec800c08246d179ea003a5c85d3cb9
tree1455141f9b3c974bcc719ec4919c5db6f272e154
parent4ed2667c138442319f0c3dcc019def8735233a90
R600/SI: Use immediates offsets for SMRD instructions whenever possible

There was a problem with the old pattern, so we were copying some
larger immediates into registers when we could have been encoding
them in the instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200932 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/smrd.ll [new file with mode: 0644]