blob: 74475c5b0f2240e6bb9bb9113409d70fea0c0c27 [file] [log] [blame]
Adrian Prantl4cae1082017-08-28 23:07:43 +00001; RUN: llc -filetype=obj -O0 < %s -mtriple sparc64-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s
2; The undescribable 128-bit register should be split into two 64-bit registers.
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +00003; CHECK: Location description: 90 48 93 08 90 49 93 08
Adrian Prantl4cae1082017-08-28 23:07:43 +00004; DW_OP_reg74 DW_OP_piece 8 DW_OP_reg75 DW_OP_piece 8 ...
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +00005
Adrian Prantl4cae1082017-08-28 23:07:43 +00006target datalayout = "E-m:e-i64:64-n32:64-S128"
7target triple = "sparc64"
8
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +00009; Function Attrs: nounwind readnone
10define void @fn1(fp128 %b) local_unnamed_addr !dbg !7 {
Adrian Prantl4cae1082017-08-28 23:07:43 +000011entry:
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +000012 tail call void @llvm.dbg.value(metadata fp128 %b, i64 0, metadata !13, metadata !18), !dbg !17
13 tail call void @llvm.dbg.value(metadata fp128 0xL00000000000000000000000000000000, i64 0, metadata !13, metadata !19), !dbg !17
14 ret void, !dbg !20
Adrian Prantl4cae1082017-08-28 23:07:43 +000015}
16
17; Function Attrs: nounwind readnone speculatable
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +000018declare void @llvm.dbg.value(metadata, i64, metadata, metadata)
Adrian Prantl4cae1082017-08-28 23:07:43 +000019
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +000020!llvm.dbg.cu = !{!0}
21!llvm.module.flags = !{!4}
Adrian Prantl4cae1082017-08-28 23:07:43 +000022
Joerg Sonnenberger0cb17cf2017-08-29 21:18:07 +000023!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, emissionKind: FullDebug)
24!1 = !DIFile(filename: "subreg.c", directory: ".")
25!4 = !{i32 2, !"Debug Info Version", i32 3}
26!7 = distinct !DISubprogram(name: "fn1", scope: !1, file: !1, line: 1, type: !8, unit: !0)
27!8 = !DISubroutineType(types: !9)
28!9 = !{null, !10}
29!10 = !DIBasicType(name: "long double", size: 128, encoding: DW_ATE_float)
30!13 = !DILocalVariable(name: "a", scope: !7, file: !1, line: 1, type: !14)
31!14 = !DIBasicType(name: "complex", size: 256, encoding: DW_ATE_complex_float)
32!17 = !DILocation(line: 1, column: 48, scope: !7)
33!18 = !DIExpression(DW_OP_LLVM_fragment, 0, 128)
34!19 = !DIExpression(DW_OP_LLVM_fragment, 128, 128)
35!20 = !DILocation(line: 1, column: 55, scope: !7)