File: fixed-point.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (32 lines) | stat: -rw-r--r-- 1,262 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;; This fixes https://github.com/llvm/llvm-project/issues/81555
; REQUIRES: object-emission
; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - -verify | FileCheck %s --check-prefix=VERIFY

; VERIFY-NOT: error:

; CHECK: {{.*}}:   DW_TAG_base_type
; CHECK-NEXT:          DW_AT_name  ("var")
; CHECK-NEXT:          DW_AT_encoding  (DW_ATE_signed_fixed)
define void @func() !dbg !26 {
entry:
  %classifier = alloca i32, align 4
  tail call void @llvm.dbg.value(metadata i32 32768, metadata !37, metadata !DIExpression()), !dbg !39
  store i32 32768, ptr %classifier, align 4, !dbg !39
  ret void
}

declare void @llvm.dbg.value(metadata, metadata, metadata)

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!19}

!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, emissionKind: FullDebug)
!1 = !DIFile(filename: "a", directory: "")
!6 = !DIBasicType(name: "var", size: 32, encoding: DW_ATE_signed_fixed)
!19 = !{i32 2, !"Debug Info Version", i32 3}
!3 = !DISubroutineType(types: null)
!26 = distinct !DISubprogram(unit: !0, type: !3)
!37 = !DILocalVariable(name: "intercept", arg: 2, scope: !26, file: !1, line: 7, type: !6)
!39 = !DILocation(line: 0, scope: !26)