1 ; RUN: llc -march=hexagon -verify-machineinstrs -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
4 ; Check for some sane output. This test used to crash.
8 define i32 @fred(i32 %a0, i8 zeroext %a1) local_unnamed_addr #0 {
10 br i1 undef, label %b4, label %b3
16 br i1 undef, label %b19, label %b5
19 br i1 undef, label %b6, label %b12
22 switch i8 %a1, label %b17 [
29 b7: ; preds = %b6, %b6, %b6
33 br i1 undef, label %b11, label %b9
36 %v10 = or i32 undef, 0
43 switch i8 %a1, label %b17 [
50 b13: ; preds = %b12, %b12
51 store i32 %a0, i32* undef, align 4
55 store i16 undef, i16* undef, align 4
58 b15: ; preds = %b12, %b9
59 %v16 = phi i32 [ 0, %b12 ], [ %v10, %b9 ]
60 store i32 undef, i32* undef, align 4
63 b17: ; preds = %b15, %b14, %b13, %b12, %b6
64 %v18 = phi i32 [ 0, %b13 ], [ 0, %b12 ], [ %v16, %b15 ], [ 0, %b14 ], [ 0, %b6 ]
71 attributes #0 = { nounwind "target-cpu"="hexagonv55" "target-features"="-hvx,-long-calls" }