[llvm-commits] [llvm] r115036 - /llvm/trunk/test/MC/ELF/align-size.s
Rafael Espindola
rafael.espindola at gmail.com
Wed Sep 29 07:40:49 PDT 2010
Author: rafael
Date: Wed Sep 29 09:40:49 2010
New Revision: 115036
URL: http://llvm.org/viewvc/llvm-project?rev=115036&view=rev
Log:
Add a test that I forgot to add with a previous commit.
Added:
llvm/trunk/test/MC/ELF/align-size.s
Added: llvm/trunk/test/MC/ELF/align-size.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/align-size.s?rev=115036&view=auto
==============================================================================
--- llvm/trunk/test/MC/ELF/align-size.s (added)
+++ llvm/trunk/test/MC/ELF/align-size.s Wed Sep 29 09:40:49 2010
@@ -0,0 +1,13 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// Test that the alignment does contribute to the size of the section.
+
+ .zero 4
+ .align 8
+
+// 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', 8)
More information about the llvm-commits
mailing list