1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
4 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
10 define void @foo(i32 %Kind) {
13 ; CHECK-NEXT: switch i32 [[KIND:%.*]], label [[SW_EPILOG:%.*]] [
14 ; CHECK-NEXT: i32 15, label [[SW_BB2:%.*]]
15 ; CHECK-NEXT: i32 2, label [[SW_BB:%.*]]
18 ; CHECK-NEXT: call void @g()
19 ; CHECK-NEXT: call void @g()
20 ; CHECK-NEXT: br label [[SW_EPILOG]]
22 ; CHECK-NEXT: call void @f()
23 ; CHECK-NEXT: br label [[SW_EPILOG]]
25 ; CHECK-NEXT: ret void
29 switch i32 %Kind, label %sw.epilog [
30 i32 1, label %sw.epilog