bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Hexagon/indirect-br.ll
2025-02-14 19:21:04 +01:00

14 lines
263 B
LLVM

; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
; CHECK: jumpr r{{[0-9]+}}
define i32 @check_indirect_br(ptr %target) nounwind {
entry:
indirectbr ptr %target, [label %test_label]
test_label:
br label %ret
ret:
ret i32 -1
}