]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PowerPC: Add support for RFC02660 - Context Switch Instruction
authorAbhay Kandpal <abhay@linux.ibm.com>
Thu, 13 Nov 2025 17:44:42 +0000 (12:44 -0500)
committerAbhay Kandpal <abhay@linux.ibm.com>
Thu, 13 Nov 2025 17:55:57 +0000 (12:55 -0500)
opcodes/
    * ppc-opc.c: (powerpc_opcodes): Add mtlpl.

gas/
    * testsuite/gas/ppc/future.s: New test.
    * testsuite/gas/ppc/future.d: Likewise.

gas/testsuite/gas/ppc/future.d
gas/testsuite/gas/ppc/future.s
opcodes/ppc-opc.c

index ed45983366a1620a9f9b1c2124b0a8fcab0f28b5..efb3ee8428dffcc7ebb6d35de4ea087b0c9466bd 100644 (file)
@@ -108,4 +108,5 @@ Disassembly of section \.text:
 .*:    (da af 74 7c|7c 74 af da)       stxvpb32x vs34,r20,r21
 .*:    (4c 06 00 7c|7c 00 06 4c)       ccmclean
 .*:    (cc 06 00 7c|7c 00 06 cc)       ccmrl
+.*:    (26 22 40 7c|7c 40 22 26)       mtlpl   r4,r2
 #pass
index 64d883ecb82e5930223d9f39dca061b5eb981e91..e66465a7418706d8f4a8773228f4e0f6023990ba 100644 (file)
@@ -82,4 +82,5 @@ _start:
        stxvpb32x 34, 20, 21
        ccmclean
        ccmrl
+       mtlpl 4, 2
 
index 2228b0c60c163455d9ac53c2b48bede0c89d6048..867801a83d2022c1cd2c4c4e10a714f05817aa61 100644 (file)
@@ -7658,6 +7658,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"tlbiel",     X(31,274),      X_MASK|1<<20,POWER9,    0,              {RB, RSO, RIC, PRS, X_R}},
 {"tlbiel",     X(31,274),      XRTLRA_MASK, POWER4,    POWER9|PPC476,  {RB, LOPT}},
 
+{"mtlpl",      X(31,275),      XRA_MASK,    FUTURE,    0,              {RB, RS}},
 {"mfapidi",    X(31,275),      X_MASK,      BOOKE,     E500|TITAN,     {RT, RA}},
 
 {"lqarx",      X(31,276),  XEH_MASK|Q_MASK, POWER8,    0,              {RTQ, RAX, RBX, EH}},