[binutils-gdb] Re: LoongArch: Enforce 4-byte align for machine instructions
Alan Modra
amodra@sourceware.org
Fri May 1 12:49:28 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0fdeb3d24aab6990e8846dcbd0dede0c70ddf111
commit 0fdeb3d24aab6990e8846dcbd0dede0c70ddf111
Author: Alan Modra <amodra@gmail.com>
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
More information about the Binutils-cvs
mailing list