summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcInstrInfo.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-09 04:58:46 +0000
committerChris Lattner <sabre@nondot.org>2006-05-09 04:58:46 +0000
commit4c15e3394671a87fbbbf21362079d11a4221654c (patch)
treea915b845a7695997cc566a1e0926664e3e98c7c6 /lib/Target/Sparc/SparcInstrInfo.td
parent8d89e7bdbcea38fe2ab3c85d91359712cd45714b (diff)
downloadllvm-4c15e3394671a87fbbbf21362079d11a4221654c.tar.gz
llvm-4c15e3394671a87fbbbf21362079d11a4221654c.tar.bz2
llvm-4c15e3394671a87fbbbf21362079d11a4221654c.tar.xz
Some notes and thoughts to myself
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcInstrInfo.td')
-rw-r--r--lib/Target/Sparc/SparcInstrInfo.td14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td
index 1969f7d6b4..76741566d2 100644
--- a/lib/Target/Sparc/SparcInstrInfo.td
+++ b/lib/Target/Sparc/SparcInstrInfo.td
@@ -516,24 +516,24 @@ def SMULri : F3_2<2, 0b001011,
/*
//===-------------------------
// Sparc Example
-defm intinst<id OPC1, id OPC2, bits Opc, string asmstr, SDNode code> {
+defm intinst{OPC1, OPC2}<bits Opc, string asmstr, SDNode code> {
def OPC1 : F3_1<2, Opc, asmstr, (ops IntRegs:$dst, IntRegs:$b, IntRegs:$c),
[(set IntRegs:$dst, (code IntRegs:$b, IntRegs:$c))]>;
def OPC2 : F3_2<2, Opc, asmstr, (ops IntRegs:$dst, IntRegs:$b, i32imm:$c),
[(set IntRegs:$dst, (code IntRegs:$b, simm13:$c))]>;
}
-defm intinst_np<id OPC1, id OPC2, bits Opc, string asmstr> {
+defm intinst_np{OPC1, OPC2}<bits Opc, string asmstr> {
def OPC1 : F3_1<2, Opc, asmstr, (ops IntRegs:$dst, IntRegs:$b, IntRegs:$c),
[]>;
def OPC2 : F3_2<2, Opc, asmstr, (ops IntRegs:$dst, IntRegs:$b, i32imm:$c),
[]>;
}
-def intinstnp< ADDXrr, ADDXri, 0b001000, "addx $b, $c, $dst">;
-def intinst < SUBrr, SUBri, 0b000100, "sub $b, $c, $dst", sub>;
-def intinstnp< SUBXrr, SUBXri, 0b001100, "subx $b, $c, $dst">;
-def intinst <SUBCCrr, SUBCCri, 0b010100, "subcc $b, $c, $dst", SPcmpicc>;
-def intinst < SMULrr, SMULri, 0b001011, "smul $b, $c, $dst", mul>;
+def { ADDXrr, ADDXri} : intinstnp<0b001000, "addx $b, $c, $dst">;
+def { SUBrr, SUBri} : intinst <0b000100, "sub $b, $c, $dst", sub>;
+def intinstnp{ SUBXrr, SUBXri}<0b001100, "subx $b, $c, $dst">;
+def intinst {SUBCCrr, SUBCCri}<0b010100, "subcc $b, $c, $dst", SPcmpicc>;
+def intinst { SMULrr, SMULri}<0b001011, "smul $b, $c, $dst", mul>;
//===-------------------------
// X86 Example