1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/getBlockAddress.ll
Krzysztof Parzyszek 66abdd815e [Hexagon] Add more lit tests
llvm-svn: 327271
2018-03-12 14:01:28 +00:00

20 lines
444 B
LLVM

; 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 }