1 ; RUN: llc -hexagon-emit-jt-text=true < %s | FileCheck %s
2 target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
3 target triple = "hexagon-unknown--elf"
9 @lane0_pwr_st = global i32 0, align 4
10 @lane1_pwr_st = global i32 0, align 4
11 @lane2_pwr_st = global i32 0, align 4
12 @lane3_pwr_st = global i32 0, align 4
14 ; Function Attrs: noinline nounwind
15 define void @test2(i32 %lane_id, i32 %rx_pwr_st) #0 {
17 %lane_id.addr = alloca i32, align 4
18 %rx_pwr_st.addr = alloca i32, align 4
19 store i32 %lane_id, ptr %lane_id.addr, align 4
20 store i32 %rx_pwr_st, ptr %rx_pwr_st.addr, align 4
21 %0 = load i32, ptr %lane_id.addr, align 4
22 switch i32 %0, label %sw.epilog [
30 sw.bb: ; preds = %entry
31 store i32 1, ptr @lane0_pwr_st, align 4
34 sw.bb1: ; preds = %entry
35 store i32 1, ptr @lane1_pwr_st, align 4
38 sw.bb2: ; preds = %entry
39 store i32 1, ptr @lane2_pwr_st, align 4
42 sw.bb3: ; preds = %entry
43 store i32 1, ptr @lane3_pwr_st, align 4
46 sw.bb4: ; preds = %entry
47 store i32 1, ptr @lane0_pwr_st, align 4
48 store i32 1, ptr @lane1_pwr_st, align 4
49 store i32 1, ptr @lane2_pwr_st, align 4
50 store i32 1, ptr @lane3_pwr_st, align 4
53 sw.epilog: ; preds = %entry, %sw.bb4, %sw.bb3, %sw.bb2, %sw.bb1, %sw.bb
57 attributes #0 = { noinline nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" "unsafe-fp-math"="false" "use-soft-float"="false" }