1 ; Test that blockaddress target is in the same partition.
2 ; RUN: llvm-split -j5 -o %t %s
3 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
4 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1234 %s
5 ; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK1234 %s
6 ; RUN: llvm-dis -o - %t3 | FileCheck --check-prefix=CHECK1234 %s
7 ; RUN: llvm-dis -o - %t4 | FileCheck --check-prefix=CHECK1234 %s
9 ; CHECK0: @xxx = global [2 x ptr] [ptr blockaddress(@f, %exit), ptr blockaddress(@g, %exit)]
10 ; CHECK1234: @xxx = external global [2 x ptr]
11 ; CHECK1234-NOT: blockaddress
12 @xxx = global [2 x ptr] [ptr blockaddress(@f, %exit), ptr blockaddress(@g, %exit)]
14 ; CHECK0: define i32 @f()
15 ; CHECK1234: declare i32 @f()
23 ; CHECK0: define i32 @g()
24 ; CHECK1234: declare i32 @g()
32 ; CHECK0: define ptr @h()
33 ; CHECK1234: declare ptr @h()
36 ret ptr blockaddress(@f, %exit)