brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c1c918f Raw
26 lines · plain
1; Make sure we don't assign debug locations to G_FCONSTANT(s) when lowering.2 3; RUN: llc -mtriple aarch64 -O0 -stop-after=irtranslator -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck --match-full-lines %s4target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"5target triple = "arm64-apple-ios5.0.0"6 7define float @main() #0 !dbg !14 {8; CHECK: %0:_(s32) = G_FCONSTANT float 0.000000e+009  ret float 0.000000e+00, !dbg !2410}11 12!llvm.dbg.cu = !{!2}13!llvm.module.flags = !{!9, !10, !11, !12}14!llvm.ident = !{!13}15 16!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, nameTableKind: GNU)17!3 = !DIFile(filename: "dbg.c", directory: "/")18!4 = !{}19!9 = !{i32 2, !"Dwarf Version", i32 2}20!10 = !{i32 2, !"Debug Info Version", i32 3}21!11 = !{i32 1, !"wchar_size", i32 4}22!12 = !{i32 7, !"PIC Level", i32 2}23!13 = !{!"clang"}24!14 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 3, scopeLine: 3, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !4)25!24 = !DILocation(line: 7, column: 3, scope: !14)26