]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: PR 30308 again
authorJan Beulich <jbeulich@suse.com>
Fri, 15 May 2026 13:03:32 +0000 (15:03 +0200)
committerAlan Modra <amodra@gmail.com>
Wed, 20 May 2026 09:25:39 +0000 (18:55 +0930)
Also put in place a testcase, so this (hopefully) won't regress again.

gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/intel-equ-loop.l [new file with mode: 0644]
gas/testsuite/gas/i386/intel-equ-loop.s [new file with mode: 0644]

index f205ae987d9b3a1dd3aff2413f79acb1d758706a..9878d0ea1989d896f87605196dd5d2944c213239 100644 (file)
@@ -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 (file)
index 0000000..76ca03a
--- /dev/null
@@ -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 (file)
index 0000000..bb0cce8
--- /dev/null
@@ -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]