From: Joerg Sonnenberger Date: Tue, 29 Jul 2014 15:49:09 +0000 (+0000) Subject: Add rfi instruction. Based on feedback by Ulrich Weigand. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f6689601ee242ec5851dccb5fc7bb699330c157a;p=oota-llvm.git Add rfi instruction. Based on feedback by Ulrich Weigand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214181 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 636ac5d571f..4a074f1c425 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -3066,6 +3066,8 @@ 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, []>; + //===----------------------------------------------------------------------===// // 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 c5d615568cc..eaf39cb410a 100644 --- a/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt +++ b/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt @@ -105,3 +105,5 @@ # CHECK: tlbie 4,0 0x7c 0x00 0x22 0x64 +# CHECK: rfi +0x4c 0x00 0x00 0x64 diff --git a/test/MC/PowerPC/ppc64-encoding-bookIII.s b/test/MC/PowerPC/ppc64-encoding-bookIII.s index dfce39536e3..1e00caa5998 100644 --- a/test/MC/PowerPC/ppc64-encoding-bookIII.s +++ b/test/MC/PowerPC/ppc64-encoding-bookIII.s @@ -141,3 +141,6 @@ # CHECK-LE: tlbie 4,0 # encoding: [0x64,0x22,0x00,0x7c] tlbie %r4 +# CHECK-BE: rfi # encoding: [0x4c,0x00,0x00,0x64] +# CHECK-LE: rfi # encoding: [0x64,0x00,0x00,0x4c] + rfi