1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 ; Check constantexprs which ifunc looks through to find the resolver
6 @ifunc_addrspacecast_as1_to_as0 = ifunc void (), ptr addrspacecast (ptr addrspace(1) @resolver_as1 to ptr)
8 ; CHECK: @alias_resolver = internal alias i32 (i32), ptr @resolver
9 @alias_resolver = internal alias i32 (i32), ptr @resolver
11 ; CHECK: @ifunc_resolver_is_alias = internal ifunc i32 (i32), ptr @alias_resolver
12 @ifunc_resolver_is_alias = internal ifunc i32 (i32), ptr @alias_resolver
15 ; CHECK: define ptr @resolver_as1() addrspace(1) {
16 define ptr @resolver_as1() addrspace(1) {
20 ; CHECK: define internal ptr @resolver() {
21 define internal ptr @resolver() {