Adrian Prantl | 4cae108 | 2017-08-28 23:07:43 +0000 | [diff] [blame] | 1 | ; 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. |
| 3 | ; CHECK: Location description: 90 4a 93 08 90 4b 93 08 |
| 4 | ; DW_OP_reg74 DW_OP_piece 8 DW_OP_reg75 DW_OP_piece 8 ... |
| 5 | source_filename = "/tmp/t.c" |
| 6 | target datalayout = "E-m:e-i64:64-n32:64-S128" |
| 7 | target triple = "sparc64" |
| 8 | |
| 9 | @a = common local_unnamed_addr global fp128 0xL00000000000000000000000000000000, align 16, !dbg !0 |
| 10 | |
| 11 | ; Function Attrs: nounwind |
| 12 | define signext i32 @fn1() local_unnamed_addr #0 !dbg !11 { |
| 13 | entry: |
| 14 | tail call void @llvm.dbg.declare(metadata { fp128, fp128 }* undef, metadata !16, metadata !DIExpression()), !dbg !18 |
| 15 | store fp128 fmul (fp128 undef, fp128 0xL00000000000000003FFF000000000000), fp128* @a, align 16, !dbg !19, !tbaa !20 |
| 16 | tail call void @llvm.dbg.value(metadata fp128 fmul (fp128 undef, fp128 0xL00000000000000003FFF000000000000), metadata !16, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 128)), !dbg !18 |
| 17 | tail call void @llvm.dbg.value(metadata fp128 0xL00000000000000000000000000000000, metadata !16, metadata !DIExpression(DW_OP_LLVM_fragment, 128, 128)), !dbg !18 |
| 18 | ret i32 undef, !dbg !24 |
| 19 | } |
| 20 | |
| 21 | ; Function Attrs: nounwind readnone speculatable |
| 22 | declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 |
| 23 | |
| 24 | ; Function Attrs: nounwind readnone speculatable |
| 25 | declare void @llvm.dbg.value(metadata, metadata, metadata) #1 |
| 26 | |
| 27 | ; Function Attrs: nounwind |
| 28 | declare void @llvm.stackprotector(i8*, i8**) #2 |
| 29 | |
| 30 | attributes #0 = { nounwind } |
| 31 | attributes #1 = { nounwind readnone speculatable } |
| 32 | attributes #2 = { nounwind } |
| 33 | |
| 34 | !llvm.dbg.cu = !{!2} |
| 35 | !llvm.module.flags = !{!7, !8, !9} |
| 36 | |
| 37 | !0 = !DIGlobalVariableExpression(var: !1) |
| 38 | !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) |
| 39 | !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 6.0.0 (trunk 311908) (llvm/trunk 311915)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) |
| 40 | !3 = !DIFile(filename: "t.c", directory: "/") |
| 41 | !4 = !{} |
| 42 | !5 = !{!0} |
| 43 | !6 = !DIBasicType(name: "long double", size: 128, encoding: DW_ATE_float) |
| 44 | !7 = !{i32 2, !"Dwarf Version", i32 4} |
| 45 | !8 = !{i32 2, !"Debug Info Version", i32 3} |
| 46 | !9 = !{i32 1, !"wchar_size", i32 4} |
| 47 | !11 = distinct !DISubprogram(name: "fn1", scope: !3, file: !3, line: 1, type: !12, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: true, unit: !2, variables: !15) |
| 48 | !12 = !DISubroutineType(types: !13) |
| 49 | !13 = !{!14} |
| 50 | !14 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) |
| 51 | !15 = !{!16} |
| 52 | !16 = !DILocalVariable(name: "b", scope: !11, file: !3, line: 1, type: !17) |
| 53 | !17 = !DIBasicType(name: "complex", size: 256, encoding: DW_ATE_complex_float) |
| 54 | !18 = !DILocation(line: 1, column: 45, scope: !11) |
| 55 | !19 = !DILocation(line: 1, column: 51, scope: !11) |
| 56 | !20 = !{!21, !21, i64 0} |
| 57 | !21 = !{!"long double", !22, i64 0} |
| 58 | !22 = !{!"omnipotent char", !23, i64 0} |
| 59 | !23 = !{!"Simple C/C++ TBAA"} |
| 60 | !24 = !DILocation(line: 1, column: 63, scope: !11) |