1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
5 ; CHECK: @basic = global ptr ptrauth (ptr @var, i32 0)
6 @basic = global ptr ptrauth (ptr @var, i32 0)
8 ; CHECK: @keyed = global ptr ptrauth (ptr @var, i32 3)
9 @keyed = global ptr ptrauth (ptr @var, i32 3)
11 ; CHECK: @intdisc = global ptr ptrauth (ptr @var, i32 0, i64 -1)
12 @intdisc = global ptr ptrauth (ptr @var, i32 0, i64 -1)
14 ; CHECK: @addrdisc = global ptr ptrauth (ptr @var, i32 2, i64 1234, ptr @addrdisc)
15 @addrdisc = global ptr ptrauth (ptr @var, i32 2, i64 1234, ptr @addrdisc)
18 @var1 = addrspace(1) global i32 0
20 ; CHECK: @addrspace = global ptr addrspace(1) ptrauth (ptr addrspace(1) @var1, i32 0)
21 @addrspace = global ptr addrspace(1) ptrauth (ptr addrspace(1) @var1, i32 0)
23 ; CHECK: @addrspace_addrdisc = addrspace(2) global ptr addrspace(1) ptrauth (ptr addrspace(1) @var1, i32 2, i64 1234, ptr addrspace(2) @addrspace_addrdisc)
24 @addrspace_addrdisc = addrspace(2) global ptr addrspace(1) ptrauth (ptr addrspace(1) @var1, i32 2, i64 1234, ptr addrspace(2) @addrspace_addrdisc)