1 ; RUN: llc -march=hexagon -O3 < %s | FileCheck %s
2 ; CHECK: r{{[0-9]*}} = add(##g0,asl(r{{[0-9]*}},#2))
4 %s.0 = type { i16, i8 }
6 @g0 = internal global [20 x i8*] zeroinitializer, align 8
8 ; Function Attrs: nounwind
9 define void @f0(%s.0* %a0) #0 {
11 %v0 = icmp eq %s.0* %a0, null
12 br i1 %v0, label %b2, label %b1
15 %v1 = getelementptr inbounds %s.0, %s.0* %a0, i32 0, i32 1
16 %v2 = load i8, i8* %v1, align 1, !tbaa !0
17 %v3 = zext i8 %v2 to i32
18 %v4 = getelementptr inbounds [20 x i8*], [20 x i8*]* @g0, i32 0, i32 %v3
19 %v5 = bitcast i8** %v4 to i8*
20 tail call void @f1(i8* %v5) #0
23 b2: ; preds = %b1, %b0
29 attributes #0 = { nounwind }
32 !1 = !{!"omnipotent char", !2}
33 !2 = !{!"Simple C/C++ TBAA"}