1 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 ; Make sure this doesn't crash.
7 target triple = "hexagon"
9 ; Function Attrs: nounwind
12 ; Function Attrs: nounwind
13 define i32 @f1(i32 %a0) #0 {
15 %v0 = icmp slt i32 %a0, 3
16 %v1 = select i1 %v0, ptr @f0, ptr null
17 %v2 = ptrtoint ptr %v1 to i32
21 attributes #0 = { nounwind }