2010-10-05 17:56:56 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | coff-dump.py | FileCheck %s
|
|
|
|
|
2010-10-04 17:32:41 +00:00
|
|
|
// Test that we get optimal nops in text
|
|
|
|
.text
|
|
|
|
f0:
|
|
|
|
.long 0
|
|
|
|
.align 8, 0x90
|
|
|
|
.long 0
|
|
|
|
.align 8
|
|
|
|
|
|
|
|
// But not in another section
|
|
|
|
.data
|
|
|
|
.long 0
|
|
|
|
.align 8, 0x90
|
|
|
|
.long 0
|
|
|
|
.align 8
|
|
|
|
|
|
|
|
//CHECK: Name = .text
|
|
|
|
//CHECK-NEXT: VirtualSize
|
|
|
|
//CHECK-NEXT: VirtualAddress
|
|
|
|
//CHECK-NEXT: SizeOfRawData = 16
|
|
|
|
//CHECK-NEXT: PointerToRawData
|
|
|
|
//CHECK-NEXT: PointerToRelocations
|
|
|
|
//CHECK-NEXT: PointerToLineNumbers
|
|
|
|
//CHECK-NEXT: NumberOfRelocations
|
|
|
|
//CHECK-NEXT: NumberOfLineNumbers
|
2010-10-09 11:01:07 +00:00
|
|
|
//CHECK-NEXT: Charateristics = 0x60400020
|
|
|
|
//CHECK-NEXT: IMAGE_SCN_CNT_CODE
|
2010-10-04 17:32:41 +00:00
|
|
|
//CHECK-NEXT: IMAGE_SCN_ALIGN_8BYTES
|
2010-10-09 11:01:07 +00:00
|
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE
|
|
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_READ
|
2010-10-05 17:56:37 +00:00
|
|
|
//CHECK-NEXT: SectionData =
|
2010-10-04 17:32:41 +00:00
|
|
|
//CHECK-NEXT: 00 00 00 00 0F 1F 40 00 - 00 00 00 00 0F 1F 40 00
|
|
|
|
|
|
|
|
//CHECK: Name = .data
|
|
|
|
//CHECK-NEXT: VirtualSize
|
|
|
|
//CHECK-NEXT: VirtualAddress
|
|
|
|
//CHECK-NEXT: SizeOfRawData = 16
|
|
|
|
//CHECK-NEXT: PointerToRawData
|
|
|
|
//CHECK-NEXT: PointerToRelocations
|
|
|
|
//CHECK-NEXT: PointerToLineNumbers
|
|
|
|
//CHECK-NEXT: NumberOfRelocations
|
|
|
|
//CHECK-NEXT: NumberOfLineNumbers
|
2010-10-09 11:01:07 +00:00
|
|
|
//CHECK-NEXT: Charateristics = 0xC0400040
|
|
|
|
//CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
2010-10-04 17:32:41 +00:00
|
|
|
//CHECK-NEXT: IMAGE_SCN_ALIGN_8BYTES
|
2010-10-09 11:01:07 +00:00
|
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_READ
|
|
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_WRITE
|
2010-10-05 17:56:37 +00:00
|
|
|
//CHECK-NEXT: SectionData =
|
2010-10-04 17:32:41 +00:00
|
|
|
//CHECK-NEXT: 00 00 00 00 90 90 90 90 - 00 00 00 00 00 00 00 00
|