xref: /llvm-project/llvm/test/CodeGen/Hexagon/getBlockAddress.ll (revision 2208c97c1bec2512d4e47b6223db6d95a7037956)
1; RUN: llc -mtriple=hexagon < %s
2; REQUIRES: asserts
3
4; Function Attrs: nounwind
5define void @f0() #0 {
6b0:
7  call void @f1(ptr blockaddress(@f0, %b1))
8  br label %b1
9
10b1:                                               ; preds = %b2, %b0
11  ret void
12
13b2:                                               ; No predecessors!
14  indirectbr ptr undef, [label %b1]
15}
16
17declare void @f1(...)
18
19attributes #0 = { nounwind }
20