|
1 | 1 | ; RUN: llc %s -filetype=obj -mtriple arm64e-apple-darwin -o - \
|
2 | 2 | ; RUN: | llvm-dwarfdump - | FileCheck %s
|
3 | 3 |
|
4 |
| -; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d2)") |
| 4 | +; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 0, 0x04d2)") |
5 | 5 | ; CHECK: 0x{{0+}}[[TY]]: DW_TAG_LLVM_ptrauth_type
|
6 | 6 | ; CHECK-NEXT: DW_AT_type {{.*}}"void *"
|
7 | 7 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_key (0x04)
|
8 |
| -; CHECK-NEXT: DW_AT_LLVM_ptrauth_address_discriminated (true) |
9 | 8 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_extra_discriminator (0x04d2)
|
10 | 9 |
|
11 |
| -; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d3, "isa-pointer")") |
| 10 | +; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d3)") |
12 | 11 | ; CHECK: 0x{{0+}}[[TY]]: DW_TAG_LLVM_ptrauth_type
|
13 | 12 | ; CHECK-NEXT: DW_AT_type {{.*}}"void *"
|
14 | 13 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_key (0x04)
|
15 | 14 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_address_discriminated (true)
|
16 | 15 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_extra_discriminator (0x04d3)
|
17 |
| -; CHECK-NEXT: DW_AT_LLVM_ptrauth_isa_pointer (true) |
18 | 16 |
|
19 |
| -; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d4, "authenticates-null-values")") |
| 17 | +; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d4, "isa-pointer")") |
20 | 18 | ; CHECK: 0x{{0+}}[[TY]]: DW_TAG_LLVM_ptrauth_type
|
21 | 19 | ; CHECK-NEXT: DW_AT_type {{.*}}"void *"
|
22 | 20 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_key (0x04)
|
23 | 21 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_address_discriminated (true)
|
24 | 22 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_extra_discriminator (0x04d4)
|
25 |
| -; CHECK-NEXT: DW_AT_LLVM_ptrauth_authenticates_null_values (true) |
| 23 | +; CHECK-NEXT: DW_AT_LLVM_ptrauth_isa_pointer (true) |
26 | 24 |
|
27 |
| -; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d5, "isa-pointer,authenticates-null-values")") |
| 25 | +; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d5, "authenticates-null-values")") |
28 | 26 | ; CHECK: 0x{{0+}}[[TY]]: DW_TAG_LLVM_ptrauth_type
|
29 | 27 | ; CHECK-NEXT: DW_AT_type {{.*}}"void *"
|
30 | 28 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_key (0x04)
|
31 | 29 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_address_discriminated (true)
|
32 | 30 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_extra_discriminator (0x04d5)
|
| 31 | +; CHECK-NEXT: DW_AT_LLVM_ptrauth_authenticates_null_values (true) |
| 32 | + |
| 33 | +; CHECK: DW_AT_type (0x{{0+}}[[TY:.*]] "void *__ptrauth(4, 1, 0x04d6, "isa-pointer,authenticates-null-values")") |
| 34 | +; CHECK: 0x{{0+}}[[TY]]: DW_TAG_LLVM_ptrauth_type |
| 35 | +; CHECK-NEXT: DW_AT_type {{.*}}"void *" |
| 36 | +; CHECK-NEXT: DW_AT_LLVM_ptrauth_key (0x04) |
| 37 | +; CHECK-NEXT: DW_AT_LLVM_ptrauth_address_discriminated (true) |
| 38 | +; CHECK-NEXT: DW_AT_LLVM_ptrauth_extra_discriminator (0x04d6) |
33 | 39 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_isa_pointer (true)
|
34 | 40 | ; CHECK-NEXT: DW_AT_LLVM_ptrauth_authenticates_null_values (true)
|
35 | 41 |
|
36 | 42 | target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
|
37 | 43 |
|
38 | 44 | @p = common global i8* null, align 8, !dbg !0
|
39 | 45 |
|
40 |
| -!llvm.dbg.cu = !{!8} |
41 |
| -!llvm.module.flags = !{!16, !17} |
42 |
| - |
43 |
| -!0 = !DIGlobalVariableExpression(var: !4, expr: !DIExpression()) |
44 |
| -!1 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression()) |
45 |
| -!2 = !DIGlobalVariableExpression(var: !6, expr: !DIExpression()) |
46 |
| -!3 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression()) |
47 |
| -!4 = distinct !DIGlobalVariable(name: "p1", scope: !8, file: !9, line: 1, type: !12, isLocal: false, isDefinition: true) |
48 |
| -!5 = distinct !DIGlobalVariable(name: "p2", scope: !8, file: !9, line: 1, type: !13, isLocal: false, isDefinition: true) |
49 |
| -!6 = distinct !DIGlobalVariable(name: "p3", scope: !8, file: !9, line: 1, type: !14, isLocal: false, isDefinition: true) |
50 |
| -!7 = distinct !DIGlobalVariable(name: "p4", scope: !8, file: !9, line: 1, type: !15, isLocal: false, isDefinition: true) |
51 |
| -!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !9, emissionKind: FullDebug, globals: !11) |
52 |
| -!9 = !DIFile(filename: "/tmp/p.c", directory: "/") |
53 |
| -!10 = !{} |
54 |
| -!11 = !{!0,!1,!2,!3} |
55 |
| -!12 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !18, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1234) |
56 |
| -!13 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !18, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1235, ptrAuthIsaPointer: true) |
57 |
| -!14 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !18, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1236, ptrAuthAuthenticatesNullValues: true) |
58 |
| -!15 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !18, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1237, ptrAuthIsaPointer: true, ptrAuthAuthenticatesNullValues: true) |
59 |
| -!16 = !{i32 2, !"Dwarf Version", i32 4} |
60 |
| -!17 = !{i32 2, !"Debug Info Version", i32 3} |
61 |
| -!18 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null) |
| 46 | +!llvm.dbg.cu = !{!10} |
| 47 | +!llvm.module.flags = !{!19, !20} |
| 48 | + |
| 49 | +!0 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression()) |
| 50 | +!1 = !DIGlobalVariableExpression(var: !6, expr: !DIExpression()) |
| 51 | +!2 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression()) |
| 52 | +!3 = !DIGlobalVariableExpression(var: !8, expr: !DIExpression()) |
| 53 | +!4 = !DIGlobalVariableExpression(var: !9, expr: !DIExpression()) |
| 54 | +!5 = distinct !DIGlobalVariable(name: "p1", scope: !10, file: !11, line: 1, type: !14, isLocal: false, isDefinition: true) |
| 55 | +!6 = distinct !DIGlobalVariable(name: "p2", scope: !10, file: !11, line: 1, type: !15, isLocal: false, isDefinition: true) |
| 56 | +!7 = distinct !DIGlobalVariable(name: "p3", scope: !10, file: !11, line: 1, type: !16, isLocal: false, isDefinition: true) |
| 57 | +!8 = distinct !DIGlobalVariable(name: "p4", scope: !10, file: !11, line: 1, type: !17, isLocal: false, isDefinition: true) |
| 58 | +!9 = distinct !DIGlobalVariable(name: "p5", scope: !10, file: !11, line: 1, type: !18, isLocal: false, isDefinition: true) |
| 59 | +!10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !11, emissionKind: FullDebug, globals: !13) |
| 60 | +!11 = !DIFile(filename: "/tmp/p.c", directory: "/") |
| 61 | +!12 = !{} |
| 62 | +!13 = !{!0,!1,!2,!3,!4} |
| 63 | +!14 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !21, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: false, ptrAuthExtraDiscriminator: 1234) |
| 64 | +!15 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !21, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1235) |
| 65 | +!16 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !21, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1236, ptrAuthIsaPointer: true) |
| 66 | +!17 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !21, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1237, ptrAuthAuthenticatesNullValues: true) |
| 67 | +!18 = !DIDerivedType(tag: DW_TAG_LLVM_ptrauth_type, baseType: !21, ptrAuthKey: 4, ptrAuthIsAddressDiscriminated: true, ptrAuthExtraDiscriminator: 1238, ptrAuthIsaPointer: true, ptrAuthAuthenticatesNullValues: true) |
| 68 | +!19 = !{i32 2, !"Dwarf Version", i32 4} |
| 69 | +!20 = !{i32 2, !"Debug Info Version", i32 3} |
| 70 | +!21 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null) |
0 commit comments