1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[NFC][test] Mark the section which contains instructions executable

As we disscussed in D77971, we haven't confirmed that if putting instructions
in a non-executable section is an undefined behaviour. To make things
easier to go on, we mark these sections executable in test file
align-branch-section-size.s.
This commit is contained in:
Shengchen Kan 2020-04-15 16:18:11 +08:00
parent a2a7b05f02
commit fe3832b9e9

View File

@ -5,16 +5,16 @@
# CHECK: Name: text1
# CHECK: AddressAlignment: 32
.section text1
.section text1, "ax"
foo:
ret
# CHECK: Name: text2
# CHECK: AddressAlignment: 1
.section text2
.section text2, "ax"
nop
# CHECK: Name: text3
# CHECK: AddressAlignment: 1
.section text3
.section text3, "ax"
jmp foo