tlbia support
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Aug 2014 20:16:29 +0000 (20:16 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 2 Aug 2014 20:16:29 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214640 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCSchedule.td
test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt
test/MC/PowerPC/ppc64-encoding-ext.s

index 89c7bc4c64c7f9ca168d36d148ba94758b626b0d..d00d9d8cc56117948a7336a5614ba09088ffb2df 100644 (file)
@@ -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, []>;
 
index 1221d4149996f4156630165b6a76782a9230a2b1..7f80121acda091148d256f314b05168d83293f44 100644 (file)
@@ -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;
 
index 6a995d8f84f4b4f118a1a4e11f28343aa1a11da5..1031ffd09b81018666314ab8db854c906c334019 100644 (file)
 0x7c 0x72 0x2a 0x86
 # CHECK: mtdcr 178, 3
 0x7c 0x72 0x2b 0x86
+
+# CHECK: tlbia
+0x7c 0x00 0x02 0xe4
index 7288df81eea3d77e2152d6a9dc0acc49c9273bf9..18f09d01a6af00d1c4a0b2fe281db74200444673 100644 (file)
 # 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