xref: /aosp_15_r20/external/llvm/test/DebugInfo/COFF/fp-stack.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s --check-prefix=ASM
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=i686-windows-msvc < %s -filetype=obj | llvm-readobj -codeview - | FileCheck %s --check-prefix=OBJ
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
4*9880d681SAndroid Build Coastguard Workertarget triple = "i686-pc-windows-msvc18.0.0"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine double @f(double %p1) !dbg !4 {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  %sub = fsub double -0.000000e+00, %p1, !dbg !16
9*9880d681SAndroid Build Coastguard Worker  tail call void @llvm.dbg.value(metadata double %sub, i64 0, metadata !10, metadata !14), !dbg !15
10*9880d681SAndroid Build Coastguard Worker  ret double %sub
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; ASM:         .cv_def_range    Lfunc_begin0 Lfunc_end0, "A\021\200\000\000\000"
14*9880d681SAndroid Build Coastguard Worker; OBJ:    DefRangeRegister {
15*9880d681SAndroid Build Coastguard Worker; OBJ:      Register: 128
16*9880d681SAndroid Build Coastguard Worker; OBJ:      MayHaveNoName: 0
17*9880d681SAndroid Build Coastguard Worker; OBJ:      LocalVariableAddrRange {
18*9880d681SAndroid Build Coastguard Worker; OBJ:        OffsetStart: .text+0x0
19*9880d681SAndroid Build Coastguard Worker; OBJ:        ISectStart: 0x0
20*9880d681SAndroid Build Coastguard Worker; OBJ:        Range: 0x7
21*9880d681SAndroid Build Coastguard Worker; OBJ:      }
22*9880d681SAndroid Build Coastguard Worker; OBJ:    }
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone
25*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata)
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0}
28*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!11, !12}
29*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!13}
30*9880d681SAndroid Build Coastguard Worker
31*9880d681SAndroid Build Coastguard Worker!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*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "<stdin>", directory: "/")
33*9880d681SAndroid Build Coastguard Worker!2 = !{}
34*9880d681SAndroid Build Coastguard Worker!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, variables: !9)
35*9880d681SAndroid Build Coastguard Worker!5 = !DIFile(filename: "t.ii", directory: "/")
36*9880d681SAndroid Build Coastguard Worker!6 = !DISubroutineType(types: !7)
37*9880d681SAndroid Build Coastguard Worker!7 = !{null, !8}
38*9880d681SAndroid Build Coastguard Worker!8 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
39*9880d681SAndroid Build Coastguard Worker!9 = !{!10}
40*9880d681SAndroid Build Coastguard Worker!10 = !DILocalVariable(name: "p1", arg: 1, scope: !4, file: !5, line: 2, type: !8)
41*9880d681SAndroid Build Coastguard Worker!11 = !{i32 2, !"CodeView", i32 1}
42*9880d681SAndroid Build Coastguard Worker!12 = !{i32 2, !"Debug Info Version", i32 3}
43*9880d681SAndroid Build Coastguard Worker!13 = !{!"clang version 3.9.0 (trunk 261537) (llvm/trunk 261463)"}
44*9880d681SAndroid Build Coastguard Worker!14 = !DIExpression()
45*9880d681SAndroid Build Coastguard Worker!15 = !DILocation(line: 2, scope: !4)
46*9880d681SAndroid Build Coastguard Worker!16 = !DILocation(line: 3, scope: !4)
47