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