This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] [MIPS] Allow jalx for ISA1 and above


The jalx instruction is used to call mips16 code and should be allowed for all ISAS.
Okay to install?

Thanks,
Catherine

        opcodes/
        * mips-opc.c (jalx): Allow for ISA1 and above.

        gas/
        * testsuite/gas/mips/mips-no-jalx.l: Remove.
        * testsuite/gas/mips/mips-no-jalx.s: Remove.
        * testsuite/gas/mips/mips.exp: Remove invocation of mips-no-jalx.

Index: mips-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-opc.c,v
retrieving revision 1.70
diff -p -r1.70 mips-opc.c
*** mips-opc.c  7 Jul 2008 19:11:15 -0000       1.70
--- mips-opc.c  7 Aug 2008 23:42:01 -0000
*************** const struct mips_opcode mips_builtin_op
*** 737,743 ****
     assembler, but will never match user input (because the line above
     will match first).  */
  {"jal",     "a",      0x0c000000, 0xfc000000, UBD|WR_31,              0,              I1      },
! {"jalx",    "a",      0x74000000, 0xfc000000, UBD|WR_31,              0,              I16     },
  {"la",      "t,A(b)", 0,    (int) M_LA_AB,    INSN_MACRO,             0,              I1      },
  {"lb",      "t,o(b)", 0x80000000, 0xfc000000, LDD|RD_b|WR_t,          0,              I1      },
  {"lb",      "t,A(b)", 0,    (int) M_LB_AB,    INSN_MACRO,             0,              I1      },
--- 737,743 ----
     assembler, but will never match user input (because the line above
     will match first).  */
  {"jal",     "a",      0x0c000000, 0xfc000000, UBD|WR_31,              0,              I1      },
! {"jalx",    "a",      0x74000000, 0xfc000000, UBD|WR_31,              0,              I1      },
  {"la",      "t,A(b)", 0,    (int) M_LA_AB,    INSN_MACRO,             0,              I1      },
  {"lb",      "t,o(b)", 0x80000000, 0xfc000000, LDD|RD_b|WR_t,          0,              I1      },
  {"lb",      "t,A(b)", 0,    (int) M_LB_AB,    INSN_MACRO,             0,              I1      },



cvs diff: Diffing .
cvs diff: mips-no-jalx.l was removed, no comparison available
cvs diff: mips-no-jalx.s was removed, no comparison available
Index: mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.143
diff -p -r1.143 mips.exp
*** mips.exp    6 Aug 2008 19:44:47 -0000       1.143
--- mips.exp    7 Aug 2008 23:43:35 -0000
*************** if { [istarget mips*-*-vxworks*] } {
*** 530,536 ****
        }
        run_dump_test "mips16-hilo-match"
      }
-     run_list_test "mips-no-jalx" "-32"
      run_dump_test "delay"
      run_dump_test "nodelay"
      run_dump_test "mips4010"
--- 530,535 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]