[llvm] r214825 - Add PPC 603's tlbld and tlbli instructions.
Joerg Sonnenberger
joerg at bec.de
Mon Aug 4 16:49:45 PDT 2014
Author: joerg
Date: Mon Aug 4 18:49:45 2014
New Revision: 214825
URL: http://llvm.org/viewvc/llvm-project?rev=214825&view=rev
Log:
Add PPC 603's tlbld and tlbli instructions.
Added:
llvm/trunk/test/MC/Disassembler/PowerPC/ppc64-encoding-6xx.txt
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
llvm/trunk/test/MC/PowerPC/ppc64-encoding-6xx.s
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=214825&r1=214824&r2=214825&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Mon Aug 4 18:49:45 2014
@@ -3106,6 +3106,11 @@ def TLBSYNC : XForm_0<31, 566, (outs), (
def TLBIEL : XForm_16b<31, 274, (outs), (ins gprc:$RB),
"tlbiel $RB", IIC_SprTLBIEL, []>;
+def TLBLD : XForm_16b<31, 978, (outs), (ins gprc:$RB),
+ "tlbld $RB", IIC_LdStLoad, []>, Requires<[IsPPC6xx]>;
+def TLBLI : XForm_16b<31, 1010, (outs), (ins gprc:$RB),
+ "tlbli $RB", IIC_LdStLoad, []>, Requires<[IsPPC6xx]>;
+
def TLBIE : XForm_26<31, 306, (outs), (ins gprc:$RS, gprc:$RB),
"tlbie $RB,$RS", IIC_SprTLBIE, []>;
Added: llvm/trunk/test/MC/Disassembler/PowerPC/ppc64-encoding-6xx.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/PowerPC/ppc64-encoding-6xx.txt?rev=214825&view=auto
==============================================================================
--- llvm/trunk/test/MC/Disassembler/PowerPC/ppc64-encoding-6xx.txt (added)
+++ llvm/trunk/test/MC/Disassembler/PowerPC/ppc64-encoding-6xx.txt Mon Aug 4 18:49:45 2014
@@ -0,0 +1,6 @@
+# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s
+
+# CHECK: tlbld 4
+0x7c 0x00 0x27 0xa4
+# CHECK: tlbli 4
+0x7c 0x00 0x27 0xe4
Modified: llvm/trunk/test/MC/PowerPC/ppc64-encoding-6xx.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/PowerPC/ppc64-encoding-6xx.s?rev=214825&r1=214824&r2=214825&view=diff
==============================================================================
--- llvm/trunk/test/MC/PowerPC/ppc64-encoding-6xx.s (original)
+++ llvm/trunk/test/MC/PowerPC/ppc64-encoding-6xx.s Mon Aug 4 18:49:45 2014
@@ -100,3 +100,10 @@ mtdbatu 3, %r12
# CHECK-BE: mtspr 543, 12 # encoding: [0x7d,0x9f,0x83,0xa6]
# CHECK-LE: mtspr 543, 12 # encoding: [0xa6,0x83,0x9f,0x7d]
mtdbatl 3, %r12
+
+# CHECK-BE: tlbld 4 # encoding: [0x7c,0x00,0x27,0xa4]
+# CHECK-LE: tlbld 4 # encoding: [0xa4,0x27,0x00,0x7c]
+tlbld %r4
+# CHECK-BE: tlbli 4 # encoding: [0x7c,0x00,0x27,0xe4]
+# CHECK-LE: tlbli 4 # encoding: [0xe4,0x27,0x00,0x7c]
+tlbli %r4
More information about the llvm-commits
mailing list