[binutils-gdb] Re: LoongArch: Enforce 4-byte align for machine instructions

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=0fdeb3d24aab6990e8846dcbd0dede0c70ddf111

commit 0fdeb3d24aab6990e8846dcbd0dede0c70ddf111
Author: Alan Modra <[email protected]>
Date:   Fri May 1 10:40:08 2026 +0930

    Re: LoongArch: Enforce 4-byte align for machine instructions
    
    readelf output is different for 32-bit objects.  Fix the test for
    loongarch32 by not overspecifying the match.

Diff:
---
 gas/testsuite/gas/loongarch/insn_align_4.d | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gas/testsuite/gas/loongarch/insn_align_4.d b/gas/testsuite/gas/loongarch/insn_align_4.d
index 31a5d352a76..4c2e909d959 100644
--- a/gas/testsuite/gas/loongarch/insn_align_4.d
+++ b/gas/testsuite/gas/loongarch/insn_align_4.d
@@ -1,7 +1,6 @@
 #as:
-#readelf: -S
+#readelf: -W -S
 
 #...
-  \[ [0-9]+\] \.text             PROGBITS         [0-9a-f]{16}  [0-9a-f]{8}
-       [0-9a-f]{16}  [0-9a-f]{16}  AX       0     0     4
-#...
+.* \.text .* 4
+#pass
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.