1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -S -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
5 target triple = "thumbv7m-none--eabi"
7 @glob = external unnamed_addr constant [16 x i8]
9 define void @f(i1 %c) {
12 ; CHECK-NEXT: br i1 [[C:%.*]], label [[NEXT:%.*]], label [[EXIT:%.*]]
14 ; CHECK-NEXT: [[PAT:%.*]] = getelementptr [16 x i8], ptr @glob
15 ; CHECK-NEXT: br label [[EXIT]]
17 ; CHECK-NEXT: ret void
20 br i1 %c, label %next, label %exit
23 %pat = getelementptr [16 x i8], ptr @glob