1 ; RUN: llc -march=hexagon -relocation-model=pic < %s | FileCheck %s
3 ; CHECK: r{{[0-9]+}} = add({{pc|PC}},##
4 ; CHECK: r{{[0-9]+}} = memw(r{{[0-9]+}}+r{{[0-9]+}}<<#2)
5 ; CHECK: r{{[0-9]+}} = add(r{{[0-9]+}},r{{[0-9]+}})
8 define i32 @test(i32 %y) nounwind {
10 switch i32 %y, label %sw.epilog [
18 sw.bb: ; preds = %entry
19 tail call void @baz1() nounwind
22 sw.bb1: ; preds = %entry
23 tail call void @baz2(i32 2, i32 78) nounwind
26 sw.bb2: ; preds = %entry
27 tail call void @baz3(i32 59) nounwind
30 sw.bb3: ; preds = %entry
31 tail call void @baz4(i32 4, i32 14) nounwind
34 sw.bb4: ; preds = %entry
37 sw.epilog: ; preds = %sw.bb4, %sw.bb3, %sw.bb2, %sw.bb1, %sw.bb, %entry
38 %y.addr.0 = phi i32 [ %y, %entry ], [ 14, %sw.bb4 ], [ 4, %sw.bb3 ], [ 3, %sw.bb2 ], [ 2, %sw.bb1 ], [ 1, %sw.bb ]
42 declare void @baz1(...)
44 declare void @baz2(i32, i32)
46 declare void @baz3(i32)
48 declare void @baz4(i32, i32)