brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 87b7215 Raw
32 lines · plain
1; RUN: llc -mtriple=x86_64-linux-gnu -O0 -filetype=obj -o %t %s2; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s3 4; Generated from:5; clang -g -S -emit-llvm -o foo.ll foo.c6; typedef int v4si __attribute__((__vector_size__(16)));7;8; v4si a9 10source_filename = "test/DebugInfo/X86/vector.ll"11 12@a = common global <4 x i32> zeroinitializer, align 16, !dbg !013 14!llvm.dbg.cu = !{!8}15!llvm.module.flags = !{!11}16 17!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())18!1 = !DIGlobalVariable(name: "a", scope: null, file: !2, line: 3, type: !3, isLocal: false, isDefinition: true)19!2 = !DIFile(filename: "foo.c", directory: "/Users/echristo")20!3 = !DIDerivedType(tag: DW_TAG_typedef, name: "v4si", file: !2, line: 1, baseType: !4)21!4 = !DICompositeType(tag: DW_TAG_array_type, baseType: !5, size: 128, align: 128, flags: DIFlagVector, elements: !6)22!5 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)23!6 = !{!7}24!7 = !DISubrange(count: 4)25!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang version 3.3 (trunk 171825) (llvm/trunk 171822)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !9, retainedTypes: !9, globals: !10, imports: !9)26!9 = !{}27; Check that we get an array type with a vector attribute.28; CHECK: DW_TAG_array_type29; CHECK-NEXT: DW_AT_GNU_vector30!10 = !{!0}31!11 = !{i32 1, !"Debug Info Version", i32 3}32