LoongArch: Enforce 4-byte align for machine instructions
Alan Modra
amodra@gmail.com
Fri May 1 12:45:39 GMT 2026
readelf output is different for 32-bit objects. Fix the test for
loongarch32 by not overspecifying the match.
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
--
Alan Modra
More information about the Binutils
mailing list