2018-08-03 06:17:53 +08:00
|
|
|
; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
|
2013-03-08 03:10:28 +08:00
|
|
|
|
2018-08-03 06:17:53 +08:00
|
|
|
; CHECK: jumpr r{{[0-9]+}}
|
2013-03-08 03:10:28 +08:00
|
|
|
|
|
|
|
define i32 @check_indirect_br(i8* %target) nounwind {
|
|
|
|
entry:
|
2018-08-03 06:17:53 +08:00
|
|
|
indirectbr i8* %target, [label %test_label]
|
2013-03-08 03:10:28 +08:00
|
|
|
|
|
|
|
test_label:
|
2018-08-03 06:17:53 +08:00
|
|
|
br label %ret
|
2013-03-08 03:10:28 +08:00
|
|
|
|
|
|
|
ret:
|
2018-08-03 06:17:53 +08:00
|
|
|
ret i32 -1
|
2013-07-14 04:38:47 +08:00
|
|
|
}
|