1 ; RUN: llc %s -o - | FileCheck %s
2 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
3 target triple = "aarch64"
5 ; Function Attrs: nounwind
6 define dso_local void @f(i64 %v) local_unnamed_addr #0 {
8 %call = tail call i32 @test() #0
9 %and = and i32 %call, 2
10 %cmp = icmp eq i32 %and, 0
11 br i1 %cmp, label %if.then, label %if.else
14 if.then: ; preds = %entry
15 switch i64 %v, label %sw.epilog [
22 sw.bb: ; preds = %if.then
23 tail call void @g0() #0
26 sw.bb1: ; preds = %if.then, %sw.bb
27 tail call void @g1() #0
30 sw.bb2: ; preds = %if.then, %sw.bb1
31 tail call void @g2() #0
34 sw.bb3: ; preds = %if.then, %sw.bb2
35 tail call void @g3() #0
38 sw.epilog: ; preds = %sw.bb3, %if.then
39 %dummy = tail call i64 @llvm.aarch64.space(i32 32700, i64 %v)
42 if.else: ; preds = %entry
43 tail call void @e() #0
46 if.end: ; preds = %if.else, %sw.epilog
50 declare dso_local i32 @test(...) local_unnamed_addr #0
52 declare dso_local void @g0(...) local_unnamed_addr #0
54 declare dso_local void @g1(...) local_unnamed_addr #0
56 declare dso_local void @g2(...) local_unnamed_addr #0
58 declare dso_local void @g3(...) local_unnamed_addr #0
60 declare dso_local void @e(...) local_unnamed_addr #0
62 declare dso_local i64 @llvm.aarch64.space(i32, i64) local_unnamed_addr #0
64 attributes #0 = { nounwind "branch-target-enforcement"="true" "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "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"="generic" "target-features"="+neon,+v8.5a" "unsafe-fp-math"="false" "use-soft-float"="false" }