1 ; RUN: llc -march=hexagon -verify-machineinstrs -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
4 ; Check for some output other than crashing.
7 target triple = "hexagon"
9 ; Function Attrs: nounwind
10 define void @fred() local_unnamed_addr #0 {
12 %v1 = load i32, ptr undef, align 4
13 %v2 = and i32 %v1, 603979776
14 %v3 = trunc i32 %v2 to i30
15 switch i30 %v3, label %b23 [
16 i30 -536870912, label %b4
17 i30 -469762048, label %b5
24 %v6 = load i32, ptr undef, align 4
25 br i1 undef, label %b7, label %b8
33 b9: ; preds = %b8, %b7
34 %v10 = load i32, ptr undef, align 4
35 %v11 = load i32, ptr undef, align 4
36 %v12 = mul nsw i32 %v11, %v10
37 %v13 = ashr i32 %v12, 13
38 %v14 = mul nsw i32 %v13, %v13
39 %v15 = zext i32 %v14 to i64
40 %v16 = mul nsw i32 %v6, %v6
41 %v17 = zext i32 %v16 to i64
42 %v18 = lshr i64 %v17, 5
43 %v19 = select i1 undef, i64 %v18, i64 %v17
44 %v20 = mul nuw nsw i64 %v19, %v15
45 %v21 = trunc i64 %v20 to i32
46 %v22 = and i32 %v21, 2147483647
47 store i32 %v22, ptr undef, align 4
54 attributes #0 = { nounwind "target-cpu"="hexagonv5" "target-features"="-hvx,-long-calls" }