brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · c985ddb Raw
233 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple armv7a-- -o %t.o2# RUN: not llvm-cfi-verify %t.o 2>&1 | FileCheck %s3 4# CHECK: Could not initialise disassembler: Unsupported architecture.5 6# Source (tiny.cc):7#   int a() { return 42; }8#   int b() { return 137; }9#   int main(int argc, char** argv) {10#     int(*ptr)();11#     if (argc == 1)12#       ptr = &a;13#     else14#       ptr = &b;15#     return ptr();16#   }17	.text18	.syntax unified19	.eabi_attribute	67, "2.09"20	.eabi_attribute	6, 221	.eabi_attribute	8, 122	.eabi_attribute	9, 123	.eabi_attribute	34, 124	.eabi_attribute	15, 125	.eabi_attribute	16, 126	.eabi_attribute	17, 227	.eabi_attribute	20, 128	.eabi_attribute	21, 129	.eabi_attribute	23, 330	.eabi_attribute	24, 131	.eabi_attribute	25, 132	.eabi_attribute	38, 133	.eabi_attribute	18, 434	.eabi_attribute	26, 235	.eabi_attribute	14, 036	.file	"ld-temp.o"37	.p2align	238	.type	_Z1av.cfi,%function39	.code	3240_Z1av.cfi:41.Lfunc_begin0:42	.file	1 "tiny.cc"43	.loc	1 1 044	.fnstart45	.cfi_sections .debug_frame46	.cfi_startproc47	.loc	1 1 11 prologue_end48	mov	r0, #4249	bx	lr50.Ltmp0:51.Lfunc_end0:52	.size	_Z1av.cfi, .Lfunc_end0-_Z1av.cfi53	.cfi_endproc54	.cantunwind55	.fnend56 57	.p2align	258	.type	_Z1bv.cfi,%function59	.code	3260_Z1bv.cfi:61.Lfunc_begin1:62	.loc	1 2 063	.fnstart64	.cfi_startproc65	.loc	1 2 11 prologue_end66	mov	r0, #13767	bx	lr68.Ltmp1:69.Lfunc_end1:70	.size	_Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi71	.cfi_endproc72	.cantunwind73	.fnend74 75	.p2align	276	.type	main,%function77	.code	3278main:79.Lfunc_begin2:80	.loc	1 3 081	.fnstart82	.cfi_startproc83	.save	{r11, lr}84	push	{r11, lr}85	.cfi_def_cfa_offset 886	.cfi_offset lr, -487	.cfi_offset r11, -888	.setfp	r11, sp89	mov	r11, sp90	.cfi_def_cfa_register r1191	.pad	#1692	sub	sp, sp, #1693	mov	r2, #094	str	r2, [r11, #-4]95	str	r0, [sp, #8]96	str	r1, [sp, #4]97.Ltmp2:98	.loc	1 5 7 prologue_end99	ldr	r0, [sp, #8]100	cmp	r0, #1101	bne	.LBB2_2102	b	.LBB2_1103.LBB2_1:104	.loc	1 6 9105	ldr	r0, .LCPI2_0106.LPC2_0:107	add	r0, pc, r0108	str	r0, [sp]109	.loc	1 6 5 is_stmt 0110	b	.LBB2_3111.LBB2_2:112	.loc	1 8 9 is_stmt 1113	ldr	r0, .LCPI2_1114.LPC2_1:115	add	r0, pc, r0116	str	r0, [sp]117	b	.LBB2_3118.LBB2_3:119	.loc	1 9 10120	ldr	r1, [sp]121	ldr	r0, .LCPI2_2122.LPC2_2:123	add	r0, pc, r0124	sub	r0, r1, r0125	ror	r0, r0, #2126	cmp	r0, #2127	blo	.LBB2_5128	b	.LBB2_4129.LBB2_4:130	.inst	0xe7ffdefe131.LBB2_5:132	mov	lr, pc133	bx	r1134	.loc	1 9 3 is_stmt 0135	mov	sp, r11136	pop	{r11, lr}137	bx	lr138.Ltmp3:139	.p2align	2140	.loc	1 0 3141.LCPI2_0:142	.long	_Z1av-(.LPC2_0+8)143.LCPI2_1:144	.long	_Z1bv-(.LPC2_1+8)145.LCPI2_2:146	.long	.L.cfi.jumptable-(.LPC2_2+8)147.Lfunc_end2:148	.size	main, .Lfunc_end2-main149	.cfi_endproc150	.fnend151 152	.p2align	2153	.type	.L.cfi.jumptable,%function154	.code	32155.L.cfi.jumptable:156.Lfunc_begin3:157	.fnstart158	.cfi_startproc159	@APP160	b	_Z1av.cfi161	b	_Z1bv.cfi162 163	@NO_APP164.Lfunc_end3:165	.size	.L.cfi.jumptable, .Lfunc_end3-.L.cfi.jumptable166	.cfi_endproc167	.cantunwind168	.fnend169 170	.type	.L__unnamed_1,%object171	.section	.rodata,"a",%progbits172.L__unnamed_1:173	.size	.L__unnamed_1, 0174 175	.section	.debug_str,"MS",%progbits,1176.Linfo_string0:177	.asciz	"clang version 7.0.0 (trunk 336681) (llvm/trunk 336683)"178.Linfo_string1:179	.asciz	"tiny.cc"180.Linfo_string2:181	.asciz	""182	.section	.debug_abbrev,"",%progbits183	.byte	1184	.byte	17185	.byte	0186	.byte	37187	.byte	14188	.byte	19189	.byte	5190	.byte	3191	.byte	14192	.byte	16193	.byte	23194	.byte	27195	.byte	14196	.byte	17197	.byte	1198	.byte	18199	.byte	6200	.byte	0201	.byte	0202	.byte	0203	.section	.debug_info,"",%progbits204.Lcu_begin0:205	.long	34206	.short	4207	.long	.debug_abbrev208	.byte	4209	.byte	1210	.long	.Linfo_string0211	.short	4212	.long	.Linfo_string1213	.long	.Lline_table_start0214	.long	.Linfo_string2215	.long	.Lfunc_begin0216	.long	.Lfunc_end2-.Lfunc_begin0217	.section	.debug_ranges,"",%progbits218	.section	.debug_macinfo,"",%progbits219	.byte	0220 221	.globl	__typeid__ZTSFivE_global_addr222	.hidden	__typeid__ZTSFivE_global_addr223.set __typeid__ZTSFivE_global_addr, .L.cfi.jumptable224	.size	__typeid__ZTSFivE_global_addr, 1225	.type	_Z1av,%function226.set _Z1av, .L.cfi.jumptable227	.type	_Z1bv,%function228.set _Z1bv, .L.cfi.jumptable+4229	.ident	"clang version 7.0.0 (trunk 336681) (llvm/trunk 336683)"230	.section	".note.GNU-stack","",%progbits231	.section	.debug_line,"",%progbits232.Lline_table_start0:233