Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / MC / ELF / basic-elf-64.s
blob5ae1f4516639d0d2b6ac0bfdd06d04e6145da8b5
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 .text
4 .globl main
5 .align 16, 0x90
6 .type main,@function
7 main: # @main
8 # BB#0:
9 subq $8, %rsp
10 movl $.L.str1, %edi
11 callq puts
12 movl $.L.str2, %edi
13 callq puts
14 xorl %eax, %eax
15 addq $8, %rsp
16 ret
17 .Ltmp0:
18 .size main, .Ltmp0-main
20 .type .L.str1,@object # @.str1
21 .section .rodata.str1.1,"aMS",@progbits,1
22 .L.str1:
23 .asciz "Hello"
24 .size .L.str1, 6
26 .type .L.str2,@object # @.str2
27 .L.str2:
28 .asciz "World!"
29 .size .L.str2, 7
31 .section .note.GNU-stack,"",@progbits
33 // CHECK: ('e_indent[EI_CLASS]', 0x00000002)
34 // CHECK: ('e_indent[EI_DATA]', 0x00000001)
35 // CHECK: ('e_indent[EI_VERSION]', 0x00000001)
36 // CHECK: ('_sections', [
37 // CHECK: # Section 0
38 // CHECK: (('sh_name', 0x00000000) # ''
40 // CHECK: # '.text'
42 // CHECK: # '.rela.text'
44 // CHECK: ('_relocations', [
45 // CHECK: # Relocation 0x00000000
46 // CHECK: (('r_offset', 0x00000005)
47 // CHECK: ('r_type', 0x0000000a)
48 // CHECK: ('r_addend', 0x00000000)
49 // CHECK: ),
50 // CHECK: # Relocation 0x00000001
51 // CHECK: (('r_offset', 0x0000000a)
52 // CHECK: ('r_type', 0x00000002)
53 // CHECK: ('r_addend', 0xfffffffc)
54 // CHECK: ),
55 // CHECK: # Relocation 0x00000002
56 // CHECK: (('r_offset', 0x0000000f)
57 // CHECK: ('r_type', 0x0000000a)
58 // CHECK: ('r_addend', 0x00000006)
59 // CHECK: ),
60 // CHECK: # Relocation 0x00000003
61 // CHECK: (('r_offset', 0x00000014)
62 // CHECK: ('r_type', 0x00000002)
63 // CHECK: ('r_addend', 0xfffffffc)
64 // CHECK: ),
65 // CHECK: ])
67 // CHECK: ('st_bind', 0x00000000)
68 // CHECK: ('st_type', 0x00000003)
70 // CHECK: ('st_bind', 0x00000000)
71 // CHECK: ('st_type', 0x00000003)
73 // CHECK: ('st_bind', 0x00000000)
74 // CHECK: ('st_type', 0x00000003)
76 // CHECK: # 'main'
77 // CHECK-NEXT: ('st_bind', 0x00000001)
78 // CHECK-NEXT: ('st_type', 0x00000002)
80 // CHECK: # 'puts'
81 // CHECK-NEXT: ('st_bind', 0x00000001)
82 // CHECK-NEXT: ('st_type', 0x00000000)