binutils-gdb/gas/testsuite/gas/s12z
Alan Modra d1023b5d1e s12z disassembler tidy
Don't ignore buffer memory read failure, or malloc failure.  Lots of
functions get a return status to pass these failures up the chain in
this patch.

opcodes/
	* s12z-dis.c (abstract_read_memory): Don't print error on EOI.
	* s12z-opc.c: Formatting.
	(operands_f): Return an int.
	(opr_n_bytes_p1): Return -1 on reaching buffer memory limit.
	(opr_n_bytes2, bfextins_n_bytes, mul_n_bytes, bm_n_bytes),
	(shift_n_bytes, mov_imm_opr_n_bytes, loop_prim_n_bytes),
	(exg_sex_discrim): Likewise.
	(create_immediate_operand, create_bitfield_operand),
	(create_register_operand_with_size, create_register_all_operand),
	(create_register_all16_operand, create_simple_memory_operand),
	(create_memory_operand, create_memory_auto_operand): Don't
	segfault on malloc failure.
	(z_ext24_decode): Return an int status, negative on fail, zero
	on success.
	(x_imm1, imm1_decode, trap_decode, z_opr_decode, z_opr_decode2),
	(imm1234, reg_s_imm, reg_s_opr, z_imm1234_8base, z_imm1234_0base),
	(z_tfr, z_reg, reg_xy, lea_reg_xys_opr, lea_reg_xys, rel_15_7),
	(decode_rel_15_7, cmp_xy, sub_d6_x_y, sub_d6_y_x),
	(ld_18bit_decode, mul_decode, bm_decode, bm_rel_decode),
	(mov_imm_opr, ld_18bit_decode, exg_sex_decode),
	(loop_primitive_decode, shift_decode, psh_pul_decode),
	(bit_field_decode): Similarly.
	(z_decode_signed_value, decode_signed_value): Similarly.  Add arg
	to return value, update callers.
	(x_opr_decode_with_size): Check all reads, returning NULL on fail.
	Don't segfault on NULL operand.
	(decode_operation): Return OP_INVALID on first fail.
	(decode_s12z): Check all reads, returning -1 on fail.
gas/
	* testsuite/gas/s12z/truncated.d: Update expected output.
2020-03-22 23:20:15 +10:30
..
abs.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
abs.s
adc-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
adc-imm.s
adc-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
adc-opr.s
add-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
add-imm.s
add-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
add-opr.s
and-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
and-imm.s
and-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
and-opr.s
and-or-cc.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
and-or-cc.s
bfext-special.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bfext-special.s
bfext.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bfext.s
bit-manip-invalid.d S12Z: Opcodes: Handle bit map operations with non-canonical operands. 2019-04-24 10:33:52 +02:00
bit-manip-invalid.s S12Z: Opcodes: Handle bit map operations with non-canonical operands. 2019-04-24 10:33:52 +02:00
bit-manip.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bit-manip.s
bit.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bit.s
bra-expression-defined.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bra-expression-defined.s
bra-expression-undef.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
bra-expression-undef.s
bra.d S12Z: Add alias instructions BHS and BLO. 2018-11-21 21:31:10 +01:00
bra.s S12Z: Add alias instructions BHS and BLO. 2018-11-21 21:31:10 +01:00
brclr-symbols.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
brclr-symbols.s
brset-clr-opr-imm-rel.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
brset-clr-opr-imm-rel.s
brset-clr-opr-reg-rel.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
brset-clr-opr-reg-rel.s
brset-clr-reg-imm-rel.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
brset-clr-reg-imm-rel.s
brset-clr-reg-reg-rel.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
brset-clr-reg-reg-rel.s
clb.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
clb.s
clr-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
clr-opr.s
clr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
clr.s
cmp-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-imm.s
cmp-opr-inc.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-inc.s
cmp-opr-rdirect.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-rdirect.s
cmp-opr-reg.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-reg.s
cmp-opr-rindirect.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-rindirect.s
cmp-opr-sxe4.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-sxe4.s
cmp-opr-xys.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-opr-xys.s
cmp-s-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-s-imm.s
cmp-s-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-s-opr.s
cmp-xy.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
cmp-xy.s
com-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
com-opr.s
complex-shifts.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
complex-shifts.s
db-tb-cc-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
db-tb-cc-opr.s
db-tb-cc-reg.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
db-tb-cc-reg.s
dbCC.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
dbCC.s
dec-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
dec-opr.s
dec.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
dec.s
div.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
div.s
dollar-hex.d S12Z: GAS: New option --mdollar-hex. 2019-05-22 08:13:36 +02:00
dollar-hex.s S12Z: GAS: New option --mdollar-hex. 2019-05-22 08:13:36 +02:00
eor.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
eor.s
exg.d S12Z: GAS: Issue warning if TFR/EXG have identical source and destination. 2019-02-01 18:08:04 +01:00
exg.l S12Z: GAS: Issue warning if TFR/EXG have identical source and destination. 2019-02-01 18:08:04 +01:00
exg.s
ext24-ld-xy.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ext24-ld-xy.s
imm-dest.d S12Z: GAS: Disallow immediate destination operands 2019-02-01 18:08:02 +01:00
imm-dest.l S12Z: GAS: Disallow immediate destination operands 2019-02-01 18:08:02 +01:00
imm-dest.s S12Z: GAS: Disallow immediate destination operands 2019-02-01 18:08:02 +01:00
inc-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
inc-opr.s
inc.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
inc.s
inh.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
inh.s
jmp.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
jmp.s
jsr.d S12Z: Fix disassembly of indexed OPR operands with zero index. 2019-01-09 19:44:27 +01:00
jsr.s S12Z: Fix disassembly of indexed OPR operands with zero index. 2019-01-09 19:44:27 +01:00
labels.d S12Z: gas: Fix bug when a symbol name was the single letter 'c'. 2019-01-16 19:35:05 +01:00
labels.s S12Z: gas: Fix bug when a symbol name was the single letter 'c'. 2019-01-16 19:35:05 +01:00
ld-imm-page2.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-imm-page2.s
ld-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-imm.s
ld-immu18.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-immu18.s
ld-large-direct.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-large-direct.s
ld-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-opr.s
ld-s-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-s-opr.s
ld-small-direct.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
ld-small-direct.s
lea-immu18.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
lea-immu18.s
lea.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
lea.s
mac.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mac.s
min-max.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
min-max.s
mod.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mod.s
mov-imm-reloc.d S12Z: GAS: Allow #_symbol operands as mov source 2019-02-01 18:08:08 +01:00
mov-imm-reloc.s S12Z: GAS: Allow #_symbol operands as mov source 2019-02-01 18:08:08 +01:00
mov.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mov.s
mul-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mul-imm.s
mul-opr-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mul-opr-opr.s
mul-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mul-opr.s
mul-reg.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mul-reg.s
mul.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
mul.s
neg-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
neg-opr.s
not-so-simple-shifts.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
not-so-simple-shifts.s
opr-18u.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-18u.s
opr-expr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-expr.s
opr-ext-18.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-ext-18.s
opr-idx-24-reg.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-idx-24-reg.s
opr-idx3-reg.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-idx3-reg.s
opr-idx3-xysp-24.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-idx3-xysp-24.s
opr-indirect-expr.d S12Z: Emit RELOC_S12Z_OPR instead of RELOC_EXT24 where appropriate. 2019-01-16 14:39:04 +01:00
opr-indirect-expr.s
opr-symbol.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
opr-symbol.s
or-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
or-imm.s
or-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
or-opr.s
p2-mul.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
p2-mul.s
page2-inh.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
page2-inh.s
pc-rel-bad.d S12Z: GAS: Fix incorrect range test for 16-bit PC relative offsets. 2019-02-01 18:08:06 +01:00
pc-rel-bad.l S12Z: GAS: Fix incorrect range test for 16-bit PC relative offsets. 2019-02-01 18:08:06 +01:00
pc-rel-bad.s S12Z: GAS: Fix incorrect range test for 16-bit PC relative offsets. 2019-02-01 18:08:06 +01:00
pc-rel-good.d S12Z: GAS: Fix incorrect range test for 16-bit PC relative offsets. 2019-02-01 18:08:06 +01:00
pc-rel-good.s S12Z: GAS: Fix incorrect range test for 16-bit PC relative offsets. 2019-02-01 18:08:06 +01:00
psh-pul.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
psh-pul.s
qmul.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
qmul.s
reg-prefix.d S12Z: New option -mreg-prefix 2019-05-15 16:25:18 +02:00
reg-prefix.s S12Z: New option -mreg-prefix 2019-05-15 16:25:18 +02:00
rotate.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
rotate.s
s12z.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
sat.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sat.s
sbc-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sbc-imm.s
sbc-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sbc-opr.s
shift.d S12Z opcodes: Fix bug disassembling certain shift instructions. 2018-11-21 21:34:47 +01:00
shift.s S12Z opcodes: Fix bug disassembling certain shift instructions. 2018-11-21 21:34:47 +01:00
simple-shift.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
simple-shift.s
single-ops.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
single-ops.s
specd6.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
specd6.s
st-large-direct.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
st-large-direct.s
st-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
st-opr.s
st-s-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
st-s-opr.s
st-small-direct.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
st-small-direct.s
st-xy.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
st-xy.s
sub-imm.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sub-imm.s
sub-opr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
sub-opr.s
tfr.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
tfr.s
trap.d gas testuite fixes: don't match dump.o 2018-09-15 16:24:18 +09:30
trap.s
truncated.d s12z disassembler tidy 2020-03-22 23:20:15 +10:30
truncated.s S12Z: Opcodes: Fix crash when trying to decode a truncated operation. 2019-04-29 16:10:21 +02:00