summaryrefslogtreecommitdiff
path: root/test/MC/COFF/align-nops.s
blob: 8d9f8a5145438aa87d805cb8b5234fb286c65c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o %t
// RUN: coff-dump.py %abs_tmp | 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           = 0x400001
//CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
//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           = 0x400001
//CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
//CHECK-NEXT:      SectionData              =
//CHECK-NEXT:        00 00 00 00 90 90 90 90 - 00 00 00 00 00 00 00 00