From: Christian Konig Date: Thu, 21 Feb 2013 15:17:13 +0000 (+0000) Subject: R600/SI: add the missing S_* asm operands X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0130a2f250d8471bb00aa2ce74bb88e139cf252;p=platform%2Fupstream%2Fllvm.git R600/SI: add the missing S_* asm operands Signed-off-by: Christian König Reviewed-by: Tom Stellard Reviewed-by: Michel Dänzer llvm-svn: 175752 --- diff --git a/llvm/lib/Target/R600/SIInstrInfo.td b/llvm/lib/Target/R600/SIInstrInfo.td index 05325db..56ca03a 100644 --- a/llvm/lib/Target/R600/SIInstrInfo.td +++ b/llvm/lib/Target/R600/SIInstrInfo.td @@ -85,41 +85,57 @@ include "SIInstrFormats.td" // Scalar classes //===----------------------------------------------------------------------===// -class SOP1_32 op, string opName, list pattern> - : SOP1 ; +class SOP1_32 op, string opName, list pattern> : SOP1 < + op, (outs SReg_32:$dst), (ins SSrc_32:$src0), + opName#" $dst, $src0", pattern +>; -class SOP1_64 op, string opName, list pattern> - : SOP1 ; +class SOP1_64 op, string opName, list pattern> : SOP1 < + op, (outs SReg_64:$dst), (ins SSrc_64:$src0), + opName#" $dst, $src0", pattern +>; -class SOP2_32 op, string opName, list pattern> - : SOP2 ; +class SOP2_32 op, string opName, list pattern> : SOP2 < + op, (outs SReg_32:$dst), (ins SSrc_32:$src0, SSrc_32:$src1), + opName#" $dst, $src0, $src1", pattern +>; -class SOP2_64 op, string opName, list pattern> - : SOP2 ; +class SOP2_64 op, string opName, list pattern> : SOP2 < + op, (outs SReg_64:$dst), (ins SSrc_64:$src0, SSrc_64:$src1), + opName#" $dst, $src0, $src1", pattern +>; -class SOPC_32 op, string opName, list pattern> - : SOPC ; +class SOPC_32 op, string opName, list pattern> : SOPC < + op, (outs SCCReg:$dst), (ins SSrc_32:$src0, SSrc_32:$src1), + opName#" $dst, $src0, $src1", pattern +>; -class SOPC_64 op, string opName, list pattern> - : SOPC ; +class SOPC_64 op, string opName, list pattern> : SOPC < + op, (outs SCCReg:$dst), (ins SSrc_64:$src0, SSrc_64:$src1), + opName#" $dst, $src0, $src1", pattern +>; -class SOPK_32 op, string opName, list pattern> - : SOPK ; +class SOPK_32 op, string opName, list pattern> : SOPK < + op, (outs SReg_32:$dst), (ins i16imm:$src0), + opName#" $dst, $src0", pattern +>; -class SOPK_64 op, string opName, list pattern> - : SOPK ; +class SOPK_64 op, string opName, list pattern> : SOPK < + op, (outs SReg_64:$dst), (ins i16imm:$src0), + opName#" $dst, $src0", pattern +>; multiclass SMRD_Helper op, string asm, RegisterClass dstClass> { def _IMM : SMRD < op, 1, (outs dstClass:$dst), (ins GPR2Align:$sbase, i32imm:$offset), - asm, [] + asm#" $dst, $sbase, $offset", [] >; def _SGPR : SMRD < op, 0, (outs dstClass:$dst), (ins GPR2Align:$sbase, SReg_32:$soff), - asm, [] + asm#" $dst, $sbase, $soff", [] >; }