1 ; RUN: llc -march=hexagon -O3 -verify-machineinstrs < %s | FileCheck %s
3 ; Make sure that this testcase passes the verifier.
6 target triple = "hexagon"
8 %s.0 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
10 @g0 = external global %s.0, align 8
11 @g1 = external hidden unnamed_addr constant [3 x i8], align 1
13 ; Function Attrs: nounwind
14 define void @f0() local_unnamed_addr #0 {
19 switch i8 undef, label %b3 [
24 b2: ; preds = %b1, %b1
31 switch i8 undef, label %b6 [
36 b5: ; preds = %b4, %b4
40 call void (i8*, i8*, ...) @f1(i8* nonnull undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @g1, i32 0, i32 0), i32* getelementptr inbounds (%s.0, %s.0* @g0, i32 0, i32 45)) #0
44 switch i8 undef, label %b9 [
49 b8: ; preds = %b7, %b7
56 switch i8 undef, label %b12 [
61 b11: ; preds = %b10, %b10
68 switch i8 undef, label %b14 [
76 b15: ; preds = %b13, %b13
79 b16: ; preds = %b17, %b14
80 %v0 = phi i8* [ %v2, %b17 ], [ undef, %b14 ]
81 %v1 = load i8, i8* %v0, align 1
82 switch i8 %v1, label %b17 [
88 %v2 = getelementptr inbounds i8, i8* %v0, i32 1
91 b18: ; preds = %b16, %b16
95 ; Function Attrs: nounwind
96 declare void @f1(i8* nocapture readonly, i8* nocapture readonly, ...) local_unnamed_addr #0
98 attributes #0 = { nounwind "target-cpu"="hexagonv62" }