1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; Check that this compiles successfully.
6 target triple = "hexagon"
8 define i64 @fred(i64 %a0, i64 %a1) local_unnamed_addr #0 {
10 %v3 = lshr i64 %a1, 52
11 %v4 = trunc i64 %v3 to i11
12 switch i11 %v4, label %b15 [
18 br i1 undef, label %b13, label %b6
21 %v7 = or i64 %a1, 2251799813685248
22 br i1 undef, label %b8, label %b10
25 %v9 = select i1 undef, i64 %v7, i64 undef
29 br i1 undef, label %b16, label %b11
32 %v12 = select i1 undef, i64 undef, i64 %v7
44 b16: ; preds = %b15, %b14, %b13, %b11, %b10, %b8
45 %v17 = phi i64 [ undef, %b13 ], [ -2251799813685248, %b14 ], [ 0, %b15 ], [ %v12, %b11 ], [ %v9, %b8 ], [ %v7, %b10 ]
49 attributes #0 = { nounwind "target-cpu"="hexagonv62" }