brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 5637dc3 Raw
54 lines · plain
1; RUN: llc %s -stop-after=finalize-isel -o - | FileCheck %s2 3 4 5;; Hand written. Check AssignmentTrackingAnalysis doesn't try to get the size6;; of scalable vectors (which causes an assertion failure).7 8; CHECK: DBG_VALUE %stack.0, $noreg, ![[#]], !DIExpression(DW_OP_deref)9; CHECK: DBG_VALUE i256 0, $noreg, ![[#]], !DIExpression()10;; FIXME: We should reinstate (or poison) the variable at the store. See11;; llvm.org/PR62346.12 13target triple = "aarch64"14 15define dso_local void @square(ptr %0) local_unnamed_addr #0 !dbg !9 {16entry:17   %1 = alloca <32 x i8>, !DIAssignID !1818   call void @llvm.dbg.assign(metadata i1 poison, metadata !19, metadata !DIExpression(), metadata !18, metadata ptr %1, metadata !DIExpression()), !dbg !2119   %2 = load <vscale x 8 x i8>, ptr %0, align 120   call void @llvm.dbg.assign(metadata i256 0, metadata !19, metadata !DIExpression(), metadata !22, metadata ptr %1, metadata !DIExpression()), !dbg !2121   store <vscale x 8 x i8> %2, ptr %1, align 122   ret void23}24 25declare void @llvm.dbg.assign(metadata, metadata, metadata, metadata, metadata, metadata)26 27attributes #0 = { vscale_range(1,16) "target-cpu"="generic" "target-features"="+sve" }28 29!llvm.dbg.cu = !{!0}30!llvm.module.flags = !{!2, !3, !7}31!llvm.ident = !{!8}32 33!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 17.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)34!1 = !DIFile(filename: "/app/example.c", directory: "/app")35!2 = !{i32 7, !"Dwarf Version", i32 4}36!3 = !{i32 2, !"Debug Info Version", i32 3}37!7 = !{i32 7, !"debug-info-assignment-tracking", i1 true}38!8 = !{!"clang version 17.0.0"}39!9 = distinct !DISubprogram(name: "square", scope: !10, file: !10, line: 1, type: !11, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !17)40!10 = !DIFile(filename: "example.c", directory: "/app")41!11 = !DISubroutineType(types: !12)42!12 = !{null, !13, !14, !16}43!13 = !DIDerivedType(tag: DW_TAG_restrict_type, baseType: !14)44!14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !15, size: 64)45!15 = !DIBasicType(name: "unsigned char", size: 8, encoding: DW_ATE_unsigned_char)46!16 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)47!17 = !{}48!18 =  distinct !DIAssignID()49!19 = !DILocalVariable(name: "i", scope: !9, file: !10, line: 2, type: !20)50!20 = !DIBasicType(name: "cats", size: 256, encoding: DW_ATE_signed)51!21 = !DILocation(line: 0, scope: !9)52!22 =  distinct !DIAssignID()53 54