From f34e598090f4dc8368e5c4602ca87748d3cff6ff Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 29 Jul 2014 23:45:20 +0000 Subject: [PATCH] Add rfci instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214256 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrInfo.td | 5 ++++- test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt | 2 ++ test/MC/PowerPC/ppc64-encoding-bookIII.s | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 0d91f43b6ac..97098514b74 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -3090,7 +3090,10 @@ def TLBIEL : XForm_16b<31, 274, (outs), (ins gprc:$RB), def TLBIE : XForm_26<31, 306, (outs), (ins gprc:$RS, gprc:$RB), "tlbie $RB,$RS", IIC_SprTLBIE, []>; -def RFI : XForm_0<19, 50, (outs), (ins), "rfi", IIC_BrB, []>; +def RFI : XForm_0<19, 50, (outs), (ins), "rfi", IIC_BrB, []>, + Requires<[IsBookE]>; +def RFCI : XForm_0<19, 51, (outs), (ins), "rfci", IIC_BrB, []>, + Requires<[IsBookE]>; //===----------------------------------------------------------------------===// // PowerPC Assembler Instruction Aliases diff --git a/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt b/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt index eaf39cb410a..32fb7befebc 100644 --- a/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt +++ b/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt @@ -107,3 +107,5 @@ # CHECK: rfi 0x4c 0x00 0x00 0x64 +# CHECK: rfci +0x4c 0x00 0x00 0x66 diff --git a/test/MC/PowerPC/ppc64-encoding-bookIII.s b/test/MC/PowerPC/ppc64-encoding-bookIII.s index 1e00caa5998..88ba88e3872 100644 --- a/test/MC/PowerPC/ppc64-encoding-bookIII.s +++ b/test/MC/PowerPC/ppc64-encoding-bookIII.s @@ -144,3 +144,6 @@ # CHECK-BE: rfi # encoding: [0x4c,0x00,0x00,0x64] # CHECK-LE: rfi # encoding: [0x64,0x00,0x00,0x4c] rfi +# CHECK-BE: rfci # encoding: [0x4c,0x00,0x00,0x66] +# CHECK-LE: rfci # encoding: [0x66,0x00,0x00,0x4c] + rfci -- 2.34.1