diff options
author | Jeff Law <law@redhat.com> | 1996-10-24 23:55:11 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-10-24 23:55:11 +0000 |
commit | 0f02ae6e5ac4bf2a15d22b8ad52f6fe8870fd443 (patch) | |
tree | 9274af47f23b374d9a0f7377787030a90cd6c5ec /opcodes | |
parent | 10fba7f14e2917aa41cbbd212de08aaf80912480 (diff) | |
download | gdb-0f02ae6e5ac4bf2a15d22b8ad52f6fe8870fd443.zip gdb-0f02ae6e5ac4bf2a15d22b8ad52f6fe8870fd443.tar.gz gdb-0f02ae6e5ac4bf2a15d22b8ad52f6fe8870fd443.tar.bz2 |
* v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
"bCC"instructions).
Because quantum's code uses jnz, jcc, etc etc etc.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 7 | ||||
-rw-r--r-- | opcodes/v850-opc.c | 27 |
2 files changed, 33 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5c953dc..c995418 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-v850 +Thu Oct 24 17:53:52 1996 Jeffrey A Law (law@cygnus.com) + + * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for + "bCC"instructions). + +end-sanitize-v850 Thu Oct 24 17:21:20 1996 Ian Lance Taylor <ian@cygnus.com> * mips-dis.c (_print_insn_mips): Use a tab between the instruction diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c index aa35837..4bc1ac4 100644 --- a/opcodes/v850-opc.c +++ b/opcodes/v850-opc.c @@ -265,6 +265,31 @@ const struct v850_opcode v850_opcodes[] = { { "br", BOP(0x5), BOP_MASK, IF3, 0 }, { "bsa", BOP(0xd), BOP_MASK, IF3, 0 }, +/* Branch aliases */ + /* signed integer */ +{ "jgt", BOP(0xf), BOP_MASK, IF3, 0 }, +{ "jge", BOP(0xe), BOP_MASK, IF3, 0 }, +{ "jlt", BOP(0x6), BOP_MASK, IF3, 0 }, +{ "jle", BOP(0x7), BOP_MASK, IF3, 0 }, + /* unsigned integer */ +{ "jh", BOP(0xb), BOP_MASK, IF3, 0 }, +{ "jnh", BOP(0x3), BOP_MASK, IF3, 0 }, +{ "jl", BOP(0x1), BOP_MASK, IF3, 0 }, +{ "jnl", BOP(0x9), BOP_MASK, IF3, 0 }, + /* common */ +{ "je", BOP(0x2), BOP_MASK, IF3, 0 }, +{ "jne", BOP(0xa), BOP_MASK, IF3, 0 }, + /* others */ +{ "jv", BOP(0x0), BOP_MASK, IF3, 0 }, +{ "jnv", BOP(0x8), BOP_MASK, IF3, 0 }, +{ "jn", BOP(0x4), BOP_MASK, IF3, 0 }, +{ "jp", BOP(0xc), BOP_MASK, IF3, 0 }, +{ "jc", BOP(0x1), BOP_MASK, IF3, 0 }, +{ "jnc", BOP(0x9), BOP_MASK, IF3, 0 }, +{ "jz", BOP(0x2), BOP_MASK, IF3, 0 }, +{ "jnz", BOP(0xa), BOP_MASK, IF3, 0 }, +{ "jsa", BOP(0xd), BOP_MASK, IF3, 0 }, + { "jmp", one(0x0060), one(0xffe0), { R1}, 1 }, { "jr", one(0x0780), two(0xffc0,0x0001),{ D22 }, 0 }, { "jarl", one(0x0780), two(0x07c0,0x0001),{ D22, R2 }, 0 }, @@ -410,7 +435,7 @@ insert_d8_6 (insn, value, errmsg) if ((value % 4) != 0) *errmsg = "short load/store word at odd offset"; - value >>= 1; + value >>= 2; return (insn | (value & 0x7e)); } |