brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8a74725 Raw
67 lines · plain
1// Test that the runtime correctly interposes ___cxa_atexit.2//3// RUN: %clang -c -o %t %s4// RUN: %llvm_jitlink %t5	.text6	.abiversion 27	.file	"cxa-atexit.c"8	.globl	on_exit_hook9	.p2align	410	.type	on_exit_hook,@function11on_exit_hook:12.Lfunc_begin0:13.Lfunc_gep0:14	addis 2, 12, .TOC.-.Lfunc_gep0@ha15	addi 2, 2, .TOC.-.Lfunc_gep0@l16.Lfunc_lep0:17	.localentry	on_exit_hook, .Lfunc_lep0-.Lfunc_gep018	mflr 019	stdu 1, -32(1)20	std 0, 48(1)21	li 3, 022	bl llvm_jitlink_setTestResultOverride23	nop24	addi 1, 1, 3225	ld 0, 16(1)26	mtlr 027	blr28	.long	029	.quad	030.Lfunc_end0:31	.size	on_exit_hook, .Lfunc_end0-.Lfunc_begin032 33	.globl	main34	.p2align	435	.type	main,@function36main:37.Lfunc_begin1:38.Lfunc_gep1:39	addis 2, 12, .TOC.-.Lfunc_gep1@ha40	addi 2, 2, .TOC.-.Lfunc_gep1@l41.Lfunc_lep1:42	.localentry	main, .Lfunc_lep1-.Lfunc_gep143	mflr 044	stdu 1, -32(1)45	std 0, 48(1)46	addis 3, 2, on_exit_hook@toc@ha47	addi 3, 3, on_exit_hook@toc@l48	li 4, 049	addis 5, 2, __dso_handle@toc@ha50	addi 5, 5, __dso_handle@toc@l51	bl __cxa_atexit52	nop53	li 3, 154	bl llvm_jitlink_setTestResultOverride55	nop56	li 3, 057	addi 1, 1, 3258	ld 0, 16(1)59	mtlr 060	blr61	.long	062	.quad	063.Lfunc_end1:64	.size	main, .Lfunc_end1-.Lfunc_begin165 66  .hidden __dso_handle67