brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · c2a5d2d Raw
233 lines · plain
1# RUN: mkdir -p %t/a2# RUN: cp %p/Inputs/wide-char.c %t/a/wide-char.c3# RUN: sed -e "s,SRC_COMPDIR,%/t/a,g" %s > %t.s4# RUN: llvm-mc -triple armv8a--none-eabi < %t.s -filetype=obj | \5# RUN:     llvm-objdump - -d --debug-vars --source | \6# RUN:     FileCheck %s --strict-whitespace7 8## The Chinese character in the source does not print correctly on Windows.9# UNSUPPORTED: system-windows10 11## Check that the --debug-vars option correctly aligns the variable display when12## the source code (printed by the -S option) includes East Asian wide13## characters.14 15# CHECK: 00000000 <foo>:16# CHECK-NEXT: ;   return *喵;                                                             ┠─ 喵 = R017# CHECK-NEXT:        0: e5900000     	ldr	r0, [r0]                                    ┻   18# CHECK-NEXT:        4: e12fff1e     	bx	lr                                              19 20	.text21	.syntax unified22	.eabi_attribute	67, "2.09"23	.eabi_attribute	6, 1024	.eabi_attribute	7, 6525	.eabi_attribute	8, 126	.eabi_attribute	9, 227	.fpu	vfpv328	.eabi_attribute	34, 029	.eabi_attribute	17, 130	.eabi_attribute	20, 131	.eabi_attribute	21, 132	.eabi_attribute	23, 333	.eabi_attribute	24, 134	.eabi_attribute	25, 135	.eabi_attribute	38, 136	.eabi_attribute	18, 437	.eabi_attribute	26, 238	.eabi_attribute	14, 039	.file	"wide.c"40	.globl	foo41	.p2align	242	.type	foo,%function43	.code	3244foo:45.Lfunc_begin0:46	.file	1 "SRC_COMPDIR/wide-char.c"47	.loc	1 1 048	.fnstart49	.cfi_sections .debug_frame50	.cfi_startproc51	.loc	1 2 10 prologue_end52	ldr	r0, [r0]53.Ltmp0:54	.loc	1 2 3 is_stmt 055	bx	lr56.Ltmp1:57.Lfunc_end0:58	.size	foo, .Lfunc_end0-foo59	.cfi_endproc60	.cantunwind61	.fnend62 63	.section	.debug_str,"MS",%progbits,164.Linfo_string0:65	.asciz	"clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)"66.Linfo_string1:67	.asciz	"wide-char.c"68.Linfo_string2:69	.asciz	"SRC_COMPDIR"70.Linfo_string3:71	.asciz	"foo"72.Linfo_string4:73	.asciz	"int"74.Linfo_string5:75	.asciz	"\345\226\265"76	.section	.debug_loc,"",%progbits77.Ldebug_loc0:78	.long	.Lfunc_begin0-.Lfunc_begin079	.long	.Ltmp0-.Lfunc_begin080	.short	181	.byte	8082	.long	083	.long	084	.section	.debug_abbrev,"",%progbits85	.byte	186	.byte	1787	.byte	188	.byte	3789	.byte	1490	.byte	1991	.byte	592	.byte	393	.byte	1494	.byte	1695	.byte	2396	.byte	2797	.byte	1498	.ascii	"\264B"99	.byte	25100	.byte	17101	.byte	1102	.byte	18103	.byte	6104	.byte	0105	.byte	0106	.byte	2107	.byte	46108	.byte	1109	.byte	17110	.byte	1111	.byte	18112	.byte	6113	.byte	64114	.byte	24115	.byte	3116	.byte	14117	.byte	58118	.byte	11119	.byte	59120	.byte	11121	.byte	39122	.byte	25123	.byte	73124	.byte	19125	.byte	63126	.byte	25127	.byte	0128	.byte	0129	.byte	3130	.byte	5131	.byte	0132	.byte	2133	.byte	23134	.byte	3135	.byte	14136	.byte	58137	.byte	11138	.byte	59139	.byte	11140	.byte	73141	.byte	19142	.byte	0143	.byte	0144	.byte	4145	.byte	36146	.byte	0147	.byte	3148	.byte	14149	.byte	62150	.byte	11151	.byte	11152	.byte	11153	.byte	0154	.byte	0155	.byte	5156	.byte	15157	.byte	0158	.byte	73159	.byte	19160	.byte	0161	.byte	0162	.byte	0163	.section	.debug_info,"",%progbits164.Lcu_begin0:165	.long	84166	.short	4167	.long	.debug_abbrev168	.byte	4169	.byte	1170	.long	.Linfo_string0171	.short	12172	.long	.Linfo_string1173	.long	.Lline_table_start0174	.long	.Linfo_string2175 176	.long	.Lfunc_begin0177	.long	.Lfunc_end0-.Lfunc_begin0178	.byte	2179	.long	.Lfunc_begin0180	.long	.Lfunc_end0-.Lfunc_begin0181	.byte	1182	.byte	91183	.long	.Linfo_string3184	.byte	1185	.byte	1186 187	.long	75188 189	.byte	3190	.long	.Ldebug_loc0191	.long	.Linfo_string5192	.byte	1193	.byte	1194	.long	82195	.byte	0196	.byte	4197	.long	.Linfo_string4198	.byte	5199	.byte	4200	.byte	5201	.long	75202	.byte	0203	.section	.debug_ranges,"",%progbits204	.section	.debug_macinfo,"",%progbits205.Lcu_macro_begin0:206	.byte	0207	.section	.debug_pubnames,"",%progbits208	.long	.LpubNames_end0-.LpubNames_begin0209.LpubNames_begin0:210	.short	2211	.long	.Lcu_begin0212	.long	88213	.long	38214	.asciz	"foo"215	.long	0216.LpubNames_end0:217	.section	.debug_pubtypes,"",%progbits218	.long	.LpubTypes_end0-.LpubTypes_begin0219.LpubTypes_begin0:220	.short	2221	.long	.Lcu_begin0222	.long	88223	.long	75224	.asciz	"int"225	.long	0226.LpubTypes_end0:227 228	.ident	"clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)"229	.section	".note.GNU-stack","",%progbits230	.eabi_attribute	30, 1231	.section	.debug_line,"",%progbits232.Lline_table_start0:233