Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / armnt-blx23t.test
blob79aaa5889dd19dfd1bbba36d1ba3ef732d0e9acf
1 # REQUIRES: arm
3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: llvm-objdump --no-print-imm-hex -d %t.obj | FileCheck %s --check-prefix BEFORE
5 # RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
6 # RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix AFTER
8 # BEFORE: Disassembly of section .text:
9 # BEFORE-EMPTY:
10 # BEFORE:        0: 4770          bx lr
11 # BEFORE:        2: bf00          nop
12 # BEFORE:        4: e92d 4800     push.w {r11, lr}
13 # BEFORE:        8: 46eb          mov r11, sp
14 # BEFORE:        a: 2020          movs r0, #32
15 # BEFORE:        c: f000 f800     bl {{.+}} @ imm = #0
16 # BEFORE:       10: 3001          adds r0, #1
17 # BEFORE:       12: e8bd 8800     pop.w {r11, pc}
19 # AFTER: Disassembly of section .text:
20 # AFTER-EMPTY:
21 # AFTER:   401000: 4770          bx lr
22 # AFTER:   401002: bf00          nop
23 # AFTER:   401004: e92d 4800     push.w {r11, lr}
24 # AFTER:   401008: 46eb          mov r11, sp
25 # AFTER:   40100a: 2020          movs r0, #32
26 # AFTER:   40100c: f7ff fff8     bl 0x401000 <.text>
27 # AFTER:   401010: 3001          adds r0, #1
28 # AFTER:   401012: e8bd 8800     pop.w {r11, pc}
30 --- !COFF
31 header:
32   Machine:         IMAGE_FILE_MACHINE_ARMNT
33   Characteristics: [  ]
34 sections:
35   - Name:            .text
36     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
37     Alignment:       4
38     SectionData:     704700BF2DE90048EB46202000F000F80130BDE80088
39     Relocations:
40       - VirtualAddress:  12
41         SymbolName:      identity
42         Type:            IMAGE_REL_ARM_BLX23T
43 symbols:
44   - Name:            .text
45     Value:           0
46     SectionNumber:   1
47     SimpleType:      IMAGE_SYM_TYPE_NULL
48     ComplexType:     IMAGE_SYM_DTYPE_NULL
49     StorageClass:    IMAGE_SYM_CLASS_STATIC
50     SectionDefinition:
51       Length:          22
52       NumberOfRelocations: 1
53       NumberOfLinenumbers: 0
54       CheckSum:        0
55       Number:          1
56   - Name:            identity
57     Value:           0
58     SectionNumber:   1
59     SimpleType:      IMAGE_SYM_TYPE_NULL
60     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
61     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
62   - Name:            function
63     Value:           4
64     SectionNumber:   1
65     SimpleType:      IMAGE_SYM_TYPE_NULL
66     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
67     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
68 ...