[binutils-gdb] Re: PR 30308 again
Alan Modra via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=811fd44766de0dcc8f521250a01cb30dc9a732a3 commit 811fd44766de0dcc8f521250a01cb30dc9a732a3 Author: Jan Beulich <[email protected]> Date: Fri May 15 15:03:32 2026 +0200 Re: PR 30308 again Also put in place a testcase, so this (hopefully) won't regress again. Diff: --- gas/testsuite/gas/i386/i386.exp | 1 + gas/testsuite/gas/i386/intel-equ-loop.l | 8 ++++++++ gas/testsuite/gas/i386/intel-equ-loop.s | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index f205ae987d9..9878d0ea198 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -63,6 +63,7 @@ if [gas_32_check] then { run_dump_test "opcode-suffix" run_dump_test "intel" run_dump_test "intel-intel" + run_list_test "intel-equ-loop" run_dump_test "intel16" run_list_test "intelbad" "" run_dump_test "intelok" diff --git a/gas/testsuite/gas/i386/intel-equ-loop.l b/gas/testsuite/gas/i386/intel-equ-loop.l new file mode 100644 index 00000000000..76ca03a43df --- /dev/null +++ b/gas/testsuite/gas/i386/intel-equ-loop.l @@ -0,0 +1,8 @@ +.*: Assembler messages: +.*: Error: symbol definition loop .* +.*: Error: can't resolve .* +.*: Error: symbol definition loop .* +.*: Error: can't resolve .* +.*: Error: symbol definition loop .* +.*: Error: can't resolve .* +#pass diff --git a/gas/testsuite/gas/i386/intel-equ-loop.s b/gas/testsuite/gas/i386/intel-equ-loop.s new file mode 100644 index 00000000000..bb0cce8f413 --- /dev/null +++ b/gas/testsuite/gas/i386/intel-equ-loop.s @@ -0,0 +1,16 @@ + .intel_syntax noprefix + + a = a + mov eax, [a] + + b = c + c = b + mov eax, [b] + mov eax, [c] + + d = e + e = d + x = d + d = 1 + e = 2 + mov eax, [x]