1 ; RUN: llvm-as < %s -disable-output 2>&1 | FileCheck %s -allow-empty
4 ; RUN: verify-uselistorder < %s
6 @ba1 = constant ptr blockaddress (@bafunc1, %bb)
7 @ba2 = constant ptr getelementptr (i8, ptr blockaddress (@bafunc2, %bb), i61 0)
8 @ba3 = constant ptr getelementptr (i8, ptr blockaddress (@bafunc2, %bb), i61 0)
10 define ptr @babefore() {
11 ret ptr getelementptr (i8, ptr blockaddress (@bafunc2, %bb), i61 0)
13 ret ptr blockaddress (@bafunc1, %bb)
15 ret ptr blockaddress (@bafunc3, %bb)
17 define void @bafunc1() {
22 define void @bafunc2() {
27 define void @bafunc3() {
32 define ptr @baafter() {
33 ret ptr blockaddress (@bafunc2, %bb)
35 ret ptr blockaddress (@bafunc1, %bb)
37 ret ptr blockaddress (@bafunc3, %bb)
40 uselistorder_bb @bafunc1, %bb, { 1, 0 }
41 uselistorder_bb @bafunc2, %bb, { 1, 0 }
42 uselistorder_bb @bafunc3, %bb, { 1, 0 }