
Ignore .align at the start of a section may result in misalignment when partial linking. Manually add -mignore-start-align option without partial linking. Gcc -falign-functions add .align 5 to the start of a section, it causes some error message mismatch. Set these testcases to xfail on LoongArch target.
13 lines
261 B
ArmAsm
13 lines
261 B
ArmAsm
# If .align at the start of a section, do not add NOP instructions
|
|
# and do not emit R_LARCH_ALIGN relocations.
|
|
# Section alignment can ensure correct alignment.
|
|
.section "aaa", "ax"
|
|
ret
|
|
|
|
.section "bbb", "ax"
|
|
.align 3
|
|
ret
|
|
|
|
.section "ccc", "ax"
|
|
.align 4, ,4
|
|
ret
|