• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -s -sd | 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:     RawDataSize: 16
22//CHECK-NEXT:     PointerToRawData
23//CHECK-NEXT:     PointerToRelocations
24//CHECK-NEXT:     PointerToLineNumbers
25//CHECK-NEXT:     RelocationCount
26//CHECK-NEXT:     LineNumberCount
27//CHECK-NEXT:     Characteristics [ (0x60400020)
28//CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
29//CHECK-NEXT:        IMAGE_SCN_CNT_CODE
30//CHECK-NEXT:        IMAGE_SCN_MEM_EXECUTE
31//CHECK-NEXT:        IMAGE_SCN_MEM_READ
32//CHECK-NEXT:     ]
33//CHECK-NEXT:     SectionData (
34//CHECK-NEXT:       0000: 00000000 0F1F4000 00000000 0F1F4000
35//CHECK-NEXT:     )
36
37//CHECK:          Name: .data
38//CHECK-NEXT:     VirtualSize:
39//CHECK-NEXT:     VirtualAddress:
40//CHECK-NEXT:     RawDataSize: 16
41//CHECK-NEXT:     PointerToRawData:
42//CHECK-NEXT:     PointerToRelocations:
43//CHECK-NEXT:     PointerToLineNumbers:
44//CHECK-NEXT:     RelocationCount:
45//CHECK-NEXT:     LineNumberCount:
46//CHECK-NEXT:     Characteristics [ (0xC0400040)
47//CHECK-NEXT:       IMAGE_SCN_ALIGN_8BYTES
48//CHECK-NEXT:       IMAGE_SCN_CNT_INITIALIZED_DATA
49//CHECK-NEXT:       IMAGE_SCN_MEM_READ
50//CHECK-NEXT:       IMAGE_SCN_MEM_WRITE
51//CHECK-NEXT:     ]
52//CHECK-NEXT:     SectionData (
53//CHECK-NEXT:       0000: 00000000 90909090 00000000 00000000
54//CHECK-NEXT:     )
55