From 1253396c1aec01d0413fa50843c5a1afde5c4f29 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sat, 2 Aug 2014 20:16:29 +0000 Subject: [PATCH] tlbia support llvm-svn: 214640 --- lib/Target/PowerPC/PPCInstrInfo.td | 3 +++ lib/Target/PowerPC/PPCSchedule.td | 1 + test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt | 3 +++ test/MC/PowerPC/ppc64-encoding-ext.s | 4 ++++ 4 files changed, 11 insertions(+) diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 89c7bc4c64c..d00d9d8cc56 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -3094,6 +3094,9 @@ def SLBMFEE : XForm_26<31, 915, (outs gprc:$RT), (ins gprc:$RB), def SLBIA : XForm_0<31, 498, (outs), (ins), "slbia", IIC_SprSLBIA, []>; +def TLBIA : XForm_0<31, 370, (outs), (ins), + "tlbia", IIC_SprTLBIA, []>; + def TLBSYNC : XForm_0<31, 566, (outs), (ins), "tlbsync", IIC_SprTLBSYNC, []>; diff --git a/lib/Target/PowerPC/PPCSchedule.td b/lib/Target/PowerPC/PPCSchedule.td index 1221d414999..7f80121acda 100644 --- a/lib/Target/PowerPC/PPCSchedule.td +++ b/lib/Target/PowerPC/PPCSchedule.td @@ -106,6 +106,7 @@ def IIC_SprSLBIE : InstrItinClass; def IIC_SprSLBMTE : InstrItinClass; def IIC_SprSLBMFEE : InstrItinClass; def IIC_SprSLBIA : InstrItinClass; +def IIC_SprTLBIA : InstrItinClass; def IIC_SprTLBIEL : InstrItinClass; def IIC_SprTLBIE : InstrItinClass; diff --git a/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt b/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt index 6a995d8f84f..1031ffd09b8 100644 --- a/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt +++ b/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt @@ -2273,3 +2273,6 @@ 0x7c 0x72 0x2a 0x86 # CHECK: mtdcr 178, 3 0x7c 0x72 0x2b 0x86 + +# CHECK: tlbia +0x7c 0x00 0x02 0xe4 diff --git a/test/MC/PowerPC/ppc64-encoding-ext.s b/test/MC/PowerPC/ppc64-encoding-ext.s index 7288df81eea..18f09d01a6a 100644 --- a/test/MC/PowerPC/ppc64-encoding-ext.s +++ b/test/MC/PowerPC/ppc64-encoding-ext.s @@ -3621,3 +3621,7 @@ # CHECK-BE: mtdcr 178, 3 # encoding: [0x7c,0x72,0x2b,0x86] # CHECK-LE: mtdcr 178, 3 # encoding: [0x86,0x2b,0x72,0x7c] mtdcr 178,3 + +# CHECK-BE: tlbia # encoding: [0x7c,0x00,0x02,0xe4] +# CHECK-LE: tlbia # encoding: [0xe4,0x02,0x00,0x7c] + tlbia