diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-27 21:40:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-27 21:40:27 +0000 |
commit | 0453dd9ca0165cccd7c68a0425bd6bcfd6c74924 (patch) | |
tree | d32ea02810b49d6a044759f18e7b8602fc05d5cf /test | |
parent | 1f386c4ce1983c448320aecca8d3cd27d1497867 (diff) | |
download | external_llvm-0453dd9ca0165cccd7c68a0425bd6bcfd6c74924.zip external_llvm-0453dd9ca0165cccd7c68a0425bd6bcfd6c74924.tar.gz external_llvm-0453dd9ca0165cccd7c68a0425bd6bcfd6c74924.tar.bz2 |
Make sure .text doesn't produce extra alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/align-text.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/MC/ELF/align-text.s b/test/MC/ELF/align-text.s new file mode 100644 index 0000000..4f4497c --- /dev/null +++ b/test/MC/ELF/align-text.s @@ -0,0 +1,19 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + +// Test that the .text directive doesn't cause alignment. + + .zero 1 + .text + .zero 1 + +// CHECK: (('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 2) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) +// CHECK-NEXT: ), |