1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 target datalayout = "P1"
5 ; CHECK: @ifunc_as0 = ifunc void (), ptr @resolver_as0
6 @ifunc_as0 = ifunc void (), ptr @resolver_as0
8 ; CHECK: @ifunc_as1 = ifunc void (), ptr addrspace(1) @resolver_as1
9 @ifunc_as1 = ifunc void (), ptr addrspace(1) @resolver_as1
11 ; CHECK: define ptr @resolver_as0() addrspace(0) {
12 define ptr @resolver_as0() addrspace(0) {
16 ; CHECK: define ptr @resolver_as1() addrspace(1) {
17 define ptr @resolver_as1() addrspace(1) {
21 ; CHECK: define void @call_ifunc_as0() addrspace(1) {
22 ; CHECK-NEXT: call addrspace(0) void @ifunc_as0()
23 define void @call_ifunc_as0() addrspace(1) {
24 call addrspace(0) void @ifunc_as0()
28 ; CHECK: define void @call_ifunc_as1() addrspace(1) {
29 ; CHECK-NEXT: call addrspace(1) void @ifunc_as1()
30 define void @call_ifunc_as1() addrspace(1) {
31 call addrspace(1) void @ifunc_as1()