[llvm] 22e919c - [NFC][test] Mark the section which contains instructions executable
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 01:26:44 PDT 2020
Author: Shengchen Kan
Date: 2020-04-15T16:25:15+08:00
New Revision: 22e919ca6141cef3fe3d74eab81454a30752ece1
URL: https://github.com/llvm/llvm-project/commit/22e919ca6141cef3fe3d74eab81454a30752ece1
DIFF: https://github.com/llvm/llvm-project/commit/22e919ca6141cef3fe3d74eab81454a30752ece1.diff
LOG: [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.
Added:
Modified:
llvm/test/MC/X86/align-branch-section-size.s
Removed:
################################################################################
diff --git a/llvm/test/MC/X86/align-branch-section-size.s b/llvm/test/MC/X86/align-branch-section-size.s
index 3ff6967ebe2a..6ed9540b679d 100644
--- a/llvm/test/MC/X86/align-branch-section-size.s
+++ b/llvm/test/MC/X86/align-branch-section-size.s
@@ -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
More information about the llvm-commits
mailing list