diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2014-08-02 20:16:29 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2014-08-02 20:16:29 +0000 |
| commit | c03105ba8ebeb72cdcbe4af0f433ff5bf6f3f7f7 (patch) | |
| tree | f3c822cfacea1cdb4bb8f01219a68092c997323a | |
| parent | e8a167ce8f5d05167758cf796dd537cd2058c9d4 (diff) | |
| download | bcm5719-llvm-c03105ba8ebeb72cdcbe4af0f433ff5bf6f3f7f7.tar.gz bcm5719-llvm-c03105ba8ebeb72cdcbe4af0f433ff5bf6f3f7f7.zip | |
tlbia support
llvm-svn: 214640
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.td | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCSchedule.td | 1 | ||||
| -rw-r--r-- | llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt | 3 | ||||
| -rw-r--r-- | llvm/test/MC/PowerPC/ppc64-encoding-ext.s | 4 |
4 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td index 89c7bc4c64c..d00d9d8cc56 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td +++ b/llvm/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/llvm/lib/Target/PowerPC/PPCSchedule.td b/llvm/lib/Target/PowerPC/PPCSchedule.td index 1221d414999..7f80121acda 100644 --- a/llvm/lib/Target/PowerPC/PPCSchedule.td +++ b/llvm/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/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt index 6a995d8f84f..1031ffd09b8 100644 --- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ext.txt +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-encoding-ext.s b/llvm/test/MC/PowerPC/ppc64-encoding-ext.s index 7288df81eea..18f09d01a6a 100644 --- a/llvm/test/MC/PowerPC/ppc64-encoding-ext.s +++ b/llvm/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 |

