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 ptr] zeroinitializer, align 8
8 ; Function Attrs: nounwind
9 define void @f0(ptr %a0) #0 {
11 %v0 = icmp eq ptr %a0, null
12 br i1 %v0, label %b2, label %b1
15 %v1 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 1
16 %v2 = load i8, ptr %v1, align 1, !tbaa !0
17 %v3 = zext i8 %v2 to i32
18 %v4 = getelementptr inbounds [20 x ptr], ptr @g0, i32 0, i32 %v3
19 tail call void @f1(ptr %v4) #0
22 b2: ; preds = %b1, %b0
28 attributes #0 = { nounwind }
31 !1 = !{!"omnipotent char", !2}
32 !2 = !{!"Simple C/C++ TBAA"}