mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
7d4900416a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116150 91177308-0d34-0410-b5e6-96231b3b80d8
51 lines
1.7 KiB
ArmAsm
51 lines
1.7 KiB
ArmAsm
// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | coff-dump.py | FileCheck %s
|
|
|
|
// 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
|
|
//CHECK-NEXT: Charateristics = 0x60400020
|
|
//CHECK-NEXT: IMAGE_SCN_CNT_CODE
|
|
//CHECK-NEXT: IMAGE_SCN_ALIGN_8BYTES
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_READ
|
|
//CHECK-NEXT: SectionData =
|
|
//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
|
|
//CHECK-NEXT: Charateristics = 0xC0400040
|
|
//CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
|
//CHECK-NEXT: IMAGE_SCN_ALIGN_8BYTES
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_READ
|
|
//CHECK-NEXT: IMAGE_SCN_MEM_WRITE
|
|
//CHECK-NEXT: SectionData =
|
|
//CHECK-NEXT: 00 00 00 00 90 90 90 90 - 00 00 00 00 00 00 00 00
|