]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: gas: Don't define LoongArch .align
authormengqinggang <mengqinggang@loongson.cn>
Sun, 1 Oct 2023 07:29:44 +0000 (15:29 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Wed, 24 Jan 2024 08:32:34 +0000 (16:32 +0800)
commit27a750dd896cfc13f4368e4c8df14e6ea5bb718f
tree64ce75db7e800f3a7f8357e379e44958b1a477c9
parentab9bb4101c5036a551e88745bebffb4c4d5aaed5
LoongArch: gas: Don't define LoongArch .align

Gcc may generate "\t.align\t%d,54525952,4\n" before commit
b20c7ee066cb7d952fa193972e8bc6362c6e4063. To write 54525952 (NOP) to object
file, we call s_align_ptwo (-4). It result in alignment padding must be a
multiple of 4 if .align has second parameter.

Use default s_align_ptwo for .align.
gas/config/tc-loongarch.c
gas/testsuite/gas/loongarch/align.l [new file with mode: 0644]
gas/testsuite/gas/loongarch/align.s [new file with mode: 0644]
gas/testsuite/gas/loongarch/loongarch.exp