1; RUN: llc -march=arm -mcpu=cortex-a8 -verify-machineinstrs < %s
2; PR12165
3target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-p:32:32:32-v128:32:32"
4target triple = "arm-none-linux"
5
6define hidden void @_strtod_r() nounwind {
7  br i1 undef, label %1, label %2
8
9; <label>:1                                       ; preds = %0
10  br label %2
11
12; <label>:2                                       ; preds = %1, %0
13  br i1 undef, label %3, label %8
14
15; <label>:3                                       ; preds = %2
16  br i1 undef, label %4, label %7
17
18; <label>:4                                       ; preds = %3
19  %5 = call i32 @llvm.flt.rounds()
20  %6 = icmp eq i32 %5, 1
21  br i1 %6, label %8, label %7
22
23; <label>:7                                       ; preds = %4, %3
24  unreachable
25
26; <label>:8                                       ; preds = %4, %2
27  br i1 undef, label %9, label %10
28
29; <label>:9                                       ; preds = %8
30  br label %10
31
32; <label>:10                                      ; preds = %9, %8
33  ret void
34}
35
36declare i32 @llvm.flt.rounds() nounwind
37