fp-bc-icmp-const-fold.ll
2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes
; RUN: opt -S -passes=attributor -aa-pipeline='basic-aa' -attributor-disable=false -attributor-max-iterations-verify -attributor-max-iterations=1 < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-bgq-linux"
define void @test(i32 signext %n) {
; CHECK-LABEL: define {{[^@]+}}@test
; CHECK-SAME: (i32 signext [[N:%.*]])
; CHECK-NEXT: entry:
; CHECK-NEXT: unreachable
; CHECK: if.then:
; CHECK-NEXT: unreachable
; CHECK: if.end:
; CHECK-NEXT: unreachable
; CHECK: if.then2:
; CHECK-NEXT: unreachable
; CHECK: if.end4:
; CHECK-NEXT: unreachable
; CHECK: if.then9:
; CHECK-NEXT: unreachable
; CHECK: if.then12:
; CHECK-NEXT: unreachable
; CHECK: if.else14:
; CHECK-NEXT: unreachable
; CHECK: do.body:
; CHECK-NEXT: unreachable
; CHECK: if.then33:
; CHECK-NEXT: unreachable
; CHECK: cond.false.i28:
; CHECK-NEXT: unreachable
; CHECK: _ZN5boost4math4signIgEEiRKT_.exit30:
; CHECK-NEXT: unreachable
;
entry:
br i1 undef, label %if.then, label %if.end
if.then: ; preds = %entry
ret void
if.end: ; preds = %entry
br i1 undef, label %if.then2, label %if.end4
if.then2: ; preds = %if.end
unreachable
if.end4: ; preds = %if.end
%sub.n = select i1 undef, i32 undef, i32 %n
switch i32 %sub.n, label %if.else14 [
i32 0, label %if.then9
i32 1, label %if.then12
]
if.then9: ; preds = %if.end4
unreachable
if.then12: ; preds = %if.end4
unreachable
if.else14: ; preds = %if.end4
br label %do.body
do.body: ; preds = %do.body, %if.else14
%scale.0 = phi ppc_fp128 [ 0xM3FF00000000000000000000000000000, %if.else14 ], [ %scale.0, %do.body ]
br i1 undef, label %do.body, label %if.then33
if.then33: ; preds = %do.body
br i1 undef, label %_ZN5boost4math4signIgEEiRKT_.exit30, label %cond.false.i28
cond.false.i28: ; preds = %if.then33
%0 = bitcast ppc_fp128 %scale.0 to i128
%tobool.i26 = icmp slt i128 %0, 0
br label %_ZN5boost4math4signIgEEiRKT_.exit30
_ZN5boost4math4signIgEEiRKT_.exit30: ; preds = %cond.false.i28, %if.then33
unreachable
}