mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* config/tc-bfin.c (md_assemble): Bump line counters if there is
EOL in the instruction. testsuite/ * gas/bfin/line_number.l, gas/bfin/line_number.s: New test. * gas/bfin/bfin.exp: Add the new test.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
|
* config/tc-bfin.c (md_assemble): Bump line counters if there is
|
||||||
|
EOL in the instruction.
|
||||||
|
|
||||||
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
* config/bfin-defs.h (IS_GENREG): Define.
|
* config/bfin-defs.h (IS_GENREG): Define.
|
||||||
|
@ -712,6 +712,10 @@ md_assemble (char *line)
|
|||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
dwarf2_emit_insn (insn_size);
|
dwarf2_emit_insn (insn_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
while (*line++ != '\0')
|
||||||
|
if (*line == '\n')
|
||||||
|
bump_line_counters ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse one line of instructions, and generate opcode for it.
|
/* Parse one line of instructions, and generate opcode for it.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
|
* gas/bfin/line_number.l, gas/bfin/line_number.s: New test.
|
||||||
|
* gas/bfin/bfin.exp: Add the new test.
|
||||||
|
|
||||||
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
2009-09-03 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
* gas/bfin/expected_move_errors.s,
|
* gas/bfin/expected_move_errors.s,
|
||||||
|
@ -17,6 +17,7 @@ if [istarget bfin*-*-*] {
|
|||||||
run_dump_test "flow"
|
run_dump_test "flow"
|
||||||
run_dump_test "flow2"
|
run_dump_test "flow2"
|
||||||
run_list_test "invalid_arith_mode" ""
|
run_list_test "invalid_arith_mode" ""
|
||||||
|
run_list_test "line_number" ""
|
||||||
run_dump_test "load"
|
run_dump_test "load"
|
||||||
run_dump_test "logical"
|
run_dump_test "logical"
|
||||||
run_dump_test "logical2"
|
run_dump_test "logical2"
|
||||||
|
3
gas/testsuite/gas/bfin/line_number.l
Normal file
3
gas/testsuite/gas/bfin/line_number.l
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.*: Assembler messages:
|
||||||
|
.*:4: Error: syntax error. Input text was illegal.
|
||||||
|
.*:4: Error:
|
4
gas/testsuite/gas/bfin/line_number.s
Normal file
4
gas/testsuite/gas/bfin/line_number.s
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
R1 = ROT R0 BY 0 ||
|
||||||
|
R3 = [SP+12] ||
|
||||||
|
nop;
|
||||||
|
ILLEGAL;
|
Reference in New Issue
Block a user