Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / MC / ELF / basic-elf-32.s
blob7c2927ad79b5dab8f06600dccb01f033b694fa59
1 // RUN: llvm-mc -filetype=obj -triple i686-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 subl $4, %esp
10 movl $.L.str1, (%esp)
11 calll puts
12 movl $.L.str2, (%esp)
13 calll puts
14 xorl %eax, %eax
15 addl $4, %esp
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]', 0x00000001)
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: # '.rel.text'
44 // CHECK: ('_relocations', [
45 // CHECK: # Relocation 0x00000000
46 // CHECK: (('r_offset', 0x00000006)
47 // CHECK: ('r_type', 0x00000001)
48 // CHECK: ),
49 // CHECK: # Relocation 0x00000001
50 // CHECK: (('r_offset', 0x0000000b)
51 // CHECK: ('r_type', 0x00000002)
52 // CHECK: ),
53 // CHECK: # Relocation 0x00000002
54 // CHECK: (('r_offset', 0x00000012)
55 // CHECK: ('r_type', 0x00000001)
56 // CHECK: ),
57 // CHECK: # Relocation 0x00000003
58 // CHECK: (('r_offset', 0x00000017)
59 // CHECK: ('r_type', 0x00000002)
60 // CHECK: ),
61 // CHECK: ])
63 // CHECK: ('st_bind', 0x00000000)
64 // CHECK: ('st_type', 0x00000003)
66 // CHECK: ('st_bind', 0x00000000)
67 // CHECK: ('st_type', 0x00000003)
69 // CHECK: ('st_bind', 0x00000000)
70 // CHECK: ('st_type', 0x00000003)
72 // CHECK: # 'main'
73 // CHECK: ('st_bind', 0x00000001)
74 // CHECK-NEXT: ('st_type', 0x00000002)
76 // CHECK: # 'puts'
77 // CHECK: ('st_bind', 0x00000001)
78 // CHECK-NEXT: ('st_type', 0x00000000)