1 ; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s --check-prefix=ASM
2 ; RUN: llc -mtriple=i686-windows-msvc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ
3 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
4 target triple = "i686-pc-windows-msvc18.0.0"
6 define double @f(double %p1) !dbg !4 {
8 %sub = fsub double -0.000000e+00, %p1, !dbg !16
9 tail call void @llvm.dbg.value(metadata double %sub, metadata !10, metadata !14), !dbg !15
13 ; ASM: .cv_def_range Ltmp1 Lfunc_end0, "A\021\200\000\000\000"
14 ; OBJ: DefRangeRegisterSym {
15 ; OBJ: Register: ST0 (0x80)
16 ; OBJ: MayHaveNoName: 0
17 ; OBJ: LocalVariableAddrRange {
18 ; OBJ: OffsetStart: .text+0x6
19 ; OBJ: ISectStart: 0x0
24 ; Function Attrs: nounwind readnone
25 declare void @llvm.dbg.value(metadata, metadata, metadata)
28 !llvm.module.flags = !{!11, !12}
31 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 261537) (llvm/trunk 261463)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
32 !1 = !DIFile(filename: "<stdin>", directory: "/")
34 !4 = distinct !DISubprogram(name: "f", linkageName: "f", scope: !5, file: !5, line: 2, type: !6, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !9)
35 !5 = !DIFile(filename: "t.ii", directory: "/")
36 !6 = !DISubroutineType(types: !7)
38 !8 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
40 !10 = !DILocalVariable(name: "p1", arg: 1, scope: !4, file: !5, line: 2, type: !8)
41 !11 = !{i32 2, !"CodeView", i32 1}
42 !12 = !{i32 2, !"Debug Info Version", i32 3}
43 !13 = !{!"clang version 3.9.0 (trunk 261537) (llvm/trunk 261463)"}
45 !15 = !DILocation(line: 2, scope: !4)
46 !16 = !DILocation(line: 3, scope: !4)