summaryrefslogtreecommitdiff
path: root/test/CodeGen/Hexagon/indirect-br.ll
blob: 188eebff5c73393843f5e96ff4cd04b0b27ec766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -march=hexagon < %s | FileCheck %s

;CHECK: jumpr  r{{[0-9]+}}

define i32 @check_indirect_br(i8* %target) nounwind {
entry:
        indirectbr i8* %target, [label %test_label]

test_label:
        br label %ret

ret:
        ret i32 -1
}