summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrFormats.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-06 21:29:23 +0000
committerChris Lattner <sabre@nondot.org>2006-06-06 21:29:23 +0000
commit001db453f5df586af9625d68e715950106e4f961 (patch)
treef1e04ee48e474229acd7ba7835418478e30b48a6 /lib/Target/PowerPC/PPCInstrFormats.td
parent73ebd0974c80d2c0ab79587bb11f948e962df704 (diff)
downloadllvm-001db453f5df586af9625d68e715950106e4f961.tar.gz
llvm-001db453f5df586af9625d68e715950106e4f961.tar.bz2
llvm-001db453f5df586af9625d68e715950106e4f961.tar.xz
Add PowerPC intrinsics to support dcbz[l]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrFormats.td')
-rw-r--r--lib/Target/PowerPC/PPCInstrFormats.td17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td
index 10ac79b1c2..bb0ccf89b0 100644
--- a/lib/Target/PowerPC/PPCInstrFormats.td
+++ b/lib/Target/PowerPC/PPCInstrFormats.td
@@ -325,6 +325,23 @@ class XForm_28<bits<6> opcode, bits<10> xo, dag OL, string asmstr,
: XForm_base_r3xo<opcode, xo, OL, asmstr, itin, pattern> {
}
+// DCB_Form - Form X instruction, used for dcb* instructions.
+class DCB_Form<bits<10> xo, bits<5> immfield, dag OL, string asmstr,
+ InstrItinClass itin, list<dag> pattern>
+ : I<31, OL, asmstr, itin> {
+ bits<5> A;
+ bits<5> B;
+
+ let Pattern = pattern;
+
+ let Inst{6-10} = immfield;
+ let Inst{11-15} = A;
+ let Inst{16-20} = B;
+ let Inst{21-30} = xo;
+ let Inst{31} = 0;
+}
+
+
// DSS_Form - Form X instruction, used for altivec dss* instructions.
class DSS_Form<bits<10> xo, dag OL, string asmstr,
InstrItinClass itin, list<dag> pattern>