summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/getBlockAddress.ll
blob: 923780edaccf42fde2f136f74d029abfbab77a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -march=hexagon < %s
; REQUIRES: asserts

; Function Attrs: nounwind
define void @f0() #0 {
b0:
  call void bitcast (void (...)* @f1 to void (i8*)*)(i8* blockaddress(@f0, %b1))
  br label %b1

b1:                                               ; preds = %b2, %b0
  ret void

b2:                                               ; No predecessors!
  indirectbr i8* undef, [label %b1]
}

declare void @f1(...)

attributes #0 = { nounwind }
OpenPOWER on IntegriCloud