summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-06 18:36:39 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-06 18:36:39 +0000
commit2937cbc0057696e35b0cc6acf790dc15055589cb (patch)
treec58363304ccc097b2f3dd7e818a640fecdfebbd3 /llvm/lib/Target/R600
parent11624bc5777bff1cc356159bb15f48db437d4f9f (diff)
downloadbcm5719-llvm-2937cbc0057696e35b0cc6acf790dc15055589cb.tar.gz
bcm5719-llvm-2937cbc0057696e35b0cc6acf790dc15055589cb.zip
R600/SI: Add a MUBUF store pattern for Imm offsets
llvm-svn: 200934
Diffstat (limited to 'llvm/lib/Target/R600')
-rw-r--r--llvm/lib/Target/R600/SIInstructions.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td
index 429624a05a3..cad41f15fea 100644
--- a/llvm/lib/Target/R600/SIInstructions.td
+++ b/llvm/lib/Target/R600/SIInstructions.td
@@ -2007,6 +2007,11 @@ defm : MUBUFLoad_Pattern <BUFFER_LOAD_DWORDX4_ADDR64, v4i32,
multiclass MUBUFStore_Pattern <MUBUF Instr, ValueType vt, PatFrag st> {
def : Pat <
+ (st vt:$value, (add i64:$ptr, IMM12bit:$offset)),
+ (Instr $value, (SI_ADDR64_RSRC (i64 0)), $ptr, (as_i16imm $offset))
+ >;
+
+ def : Pat <
(st vt:$value, i64:$ptr),
(Instr $value, (SI_ADDR64_RSRC (i64 0)), $ptr, 0)
>;
OpenPOWER on IntegriCloud