• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | coff-dump.py | FileCheck %s
2
3// Test that we get optimal nops in text
4    .text
5f0:
6    .long 0
7    .align  8, 0x90
8    .long 0
9    .align  8
10
11// But not in another section
12    .data
13    .long 0
14    .align  8, 0x90
15    .long 0
16    .align  8
17
18//CHECK:         Name                     = .text
19//CHECK-NEXT:    VirtualSize
20//CHECK-NEXT:    VirtualAddress
21//CHECK-NEXT:    SizeOfRawData            = 16
22//CHECK-NEXT:    PointerToRawData
23//CHECK-NEXT:    PointerToRelocations
24//CHECK-NEXT:    PointerToLineNumbers
25//CHECK-NEXT:    NumberOfRelocations
26//CHECK-NEXT:    NumberOfLineNumbers
27//CHECK-NEXT:    Charateristics           = 0x60400020
28//CHECK-NEXT:        IMAGE_SCN_CNT_CODE
29//CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
30//CHECK-NEXT:        IMAGE_SCN_MEM_EXECUTE
31//CHECK-NEXT:        IMAGE_SCN_MEM_READ
32//CHECK-NEXT:      SectionData              =
33//CHECK-NEXT:        00 00 00 00 0F 1F 40 00 - 00 00 00 00 0F 1F 40 00
34
35//CHECK:         Name                     = .data
36//CHECK-NEXT:      VirtualSize
37//CHECK-NEXT:      VirtualAddress
38//CHECK-NEXT:      SizeOfRawData            = 16
39//CHECK-NEXT:      PointerToRawData
40//CHECK-NEXT:      PointerToRelocations
41//CHECK-NEXT:      PointerToLineNumbers
42//CHECK-NEXT:      NumberOfRelocations
43//CHECK-NEXT:      NumberOfLineNumbers
44//CHECK-NEXT:      Charateristics           = 0xC0400040
45//CHECK-NEXT:        IMAGE_SCN_CNT_INITIALIZED_DATA
46//CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
47//CHECK-NEXT:        IMAGE_SCN_MEM_READ
48//CHECK-NEXT:        IMAGE_SCN_MEM_WRITE
49//CHECK-NEXT:      SectionData              =
50//CHECK-NEXT:        00 00 00 00 90 90 90 90 - 00 00 00 00 00 00 00 00
51