1 ; RUN: llc -march=hexagon < %s | FileCheck %s 2 ; REQUIRES: asserts 3 4 ; Make sure this doesn't crash. 5 ; CHECK: jumpr r31 6 7 target triple = "hexagon" 8 9 ; Function Attrs: nounwind 10 declare void @f0() #0 11 12 ; Function Attrs: nounwind 13 define i32 @f1(i32 %a0) #0 { 14 b0: 15 %v0 = icmp slt i32 %a0, 3 16 %v1 = select i1 %v0, void ()* @f0, void ()* null 17 %v2 = ptrtoint void ()* %v1 to i32 18 ret i32 %v2 19 } 20 21 attributes #0 = { nounwind } 22