1*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker; REQUIRES: object-emission 4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" 5*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-unknown-macho" 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; generated from (-triple thumbv7-apple-unknown-macho -Os): 8*9880d681SAndroid Build Coastguard Worker; void f(_Complex double c) { c = 0; } 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 11*9880d681SAndroid Build Coastguard Workerdefine arm_aapcscc void @f([2 x i64] %c.coerce) #0 !dbg !4 { 12*9880d681SAndroid Build Coastguard Workerentry: 13*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.declare(metadata { double, double }* undef, metadata !14, metadata !15), !dbg !16 14*9880d681SAndroid Build Coastguard Worker ; The target has no native double type. 15*9880d681SAndroid Build Coastguard Worker ; SROA split the complex value into two i64 values. 16*9880d681SAndroid Build Coastguard Worker ; CHECK: DW_TAG_formal_parameter 17*9880d681SAndroid Build Coastguard Worker ; CHECK-NEXT: DW_AT_location [DW_FORM_block1] (<0x04> 10 00 93 08 ) 18*9880d681SAndroid Build Coastguard Worker ; DW_AT_location ( constu 0x00000000, piece 0x00000008 ) 19*9880d681SAndroid Build Coastguard Worker ; CHECK-NEXT: DW_AT_name {{.*}} "c" 20*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata i64 0, i64 0, metadata !14, metadata !17), !dbg !16 21*9880d681SAndroid Build Coastguard Worker ; Manually removed to disable location list emission: 22*9880d681SAndroid Build Coastguard Worker ; tail call void @llvm.dbg.value(metadata i64 0, i64 0, metadata !14, metadata !18), !dbg !16 23*9880d681SAndroid Build Coastguard Worker ret void, !dbg !19 24*9880d681SAndroid Build Coastguard Worker} 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 27*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) #0 28*9880d681SAndroid Build Coastguard Worker 29*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 30*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) #0 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind readnone } 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 35*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!9, !10, !11, !12} 36*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!13} 37*9880d681SAndroid Build Coastguard Worker 38*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0 (trunk 259998) (llvm/trunk 259999)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 39*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "<stdin>", directory: "/") 40*9880d681SAndroid Build Coastguard Worker!2 = !{} 41*9880d681SAndroid Build Coastguard Worker!4 = distinct !DISubprogram(name: "f", scope: !5, file: !5, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2) 42*9880d681SAndroid Build Coastguard Worker!5 = !DIFile(filename: "test.c", directory: "/") 43*9880d681SAndroid Build Coastguard Worker!6 = !DISubroutineType(types: !7) 44*9880d681SAndroid Build Coastguard Worker!7 = !{null, !8} 45*9880d681SAndroid Build Coastguard Worker!8 = !DIBasicType(name: "complex", size: 128, align: 64, encoding: DW_ATE_complex_float) 46*9880d681SAndroid Build Coastguard Worker!9 = !{i32 2, !"Dwarf Version", i32 2} 47*9880d681SAndroid Build Coastguard Worker!10 = !{i32 2, !"Debug Info Version", i32 3} 48*9880d681SAndroid Build Coastguard Worker!11 = !{i32 1, !"wchar_size", i32 4} 49*9880d681SAndroid Build Coastguard Worker!12 = !{i32 1, !"min_enum_size", i32 4} 50*9880d681SAndroid Build Coastguard Worker!13 = !{!"clang version 3.9.0 (trunk 259998) (llvm/trunk 259999)"} 51*9880d681SAndroid Build Coastguard Worker!14 = !DILocalVariable(name: "c", arg: 1, scope: !4, file: !5, line: 1, type: !8) 52*9880d681SAndroid Build Coastguard Worker!15 = !DIExpression() 53*9880d681SAndroid Build Coastguard Worker!16 = !DILocation(line: 1, column: 24, scope: !4) 54*9880d681SAndroid Build Coastguard Worker!17 = !DIExpression(DW_OP_bit_piece, 0, 64) 55*9880d681SAndroid Build Coastguard Worker!18 = !DIExpression(DW_OP_bit_piece, 64, 64) 56*9880d681SAndroid Build Coastguard Worker!19 = !DILocation(line: 1, column: 36, scope: !4) 57