Skip to content

Commit 67752c4

Browse files
committed
post commit
1 parent 16bbd56 commit 67752c4

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

llvm/test/Transforms/InstSimplify/ConstProp/sinh-cosh-intrinsics.ll

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,39 @@
33

44
define double @test_sinh_0() {
55
; CHECK-LABEL: define double @test_sinh_0() {
6-
; CHECK-NEXT: [[RESULT:%.*]] = call double @llvm.sinh.f64(double 0.000000e+00)
7-
; CHECK-NEXT: ret double [[RESULT]]
6+
; CHECK-NEXT: ret double 0.000000e+00
87
;
98
%result = call double @llvm.sinh.f64(double 0.0)
109
ret double %result
1110
}
1211

1312
define double @test_sinh_ln2() {
1413
; CHECK-LABEL: define double @test_sinh_ln2() {
15-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.sinh.f64(double 0x3FE62E42FEFA3BDC)
16-
; CHECK-NEXT: ret double [[RES]]
14+
; CHECK-NEXT: ret double 0x3FE8000000000268
1715
;
1816
%res = call double @llvm.sinh.f64(double 0.69314718056)
1917
ret double %res
2018
}
2119

2220
define double @test_sinh_ln5() {
2321
; CHECK-LABEL: define double @test_sinh_ln5() {
24-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.sinh.f64(double 0x3FF9C041F7ED4511)
25-
; CHECK-NEXT: ret double [[RES]]
22+
; CHECK-NEXT: ret double 0x400333333332D56D
2623
;
2724
%res = call double @llvm.sinh.f64(double 1.60943791243)
2825
ret double %res
2926
}
3027

3128
define <2 x double> @test_sinh_v2() {
3229
; CHECK-LABEL: define <2 x double> @test_sinh_v2() {
33-
; CHECK-NEXT: [[RESULT:%.*]] = call <2 x double> @llvm.sinh.v2f64(<2 x double> zeroinitializer)
34-
; CHECK-NEXT: ret <2 x double> [[RESULT]]
30+
; CHECK-NEXT: ret <2 x double> zeroinitializer
3531
;
3632
%result = call <2 x double> @llvm.sinh.v2f64(<2 x double> zeroinitializer)
3733
ret <2 x double> %result
3834
}
3935

4036
define double @test_sinh_neg0() {
4137
; CHECK-LABEL: define double @test_sinh_neg0() {
42-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.sinh.f64(double -0.000000e+00)
43-
; CHECK-NEXT: ret double [[RES]]
38+
; CHECK-NEXT: ret double -0.000000e+00
4439
;
4540
%res = call double @llvm.sinh.f64(double -0.0)
4641
ret double %res
@@ -102,44 +97,39 @@ define double @test_sinh_neg_inf() {
10297

10398
define double @test_cosh_0() {
10499
; CHECK-LABEL: define double @test_cosh_0() {
105-
; CHECK-NEXT: [[RESULT:%.*]] = call double @llvm.cosh.f64(double 0.000000e+00)
106-
; CHECK-NEXT: ret double [[RESULT]]
100+
; CHECK-NEXT: ret double 1.000000e+00
107101
;
108102
%result = call double @llvm.cosh.f64(double 0.0)
109103
ret double %result
110104
}
111105

112106
define double @test_cosh_ln2() {
113107
; CHECK-LABEL: define double @test_cosh_ln2() {
114-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.cosh.f64(double 0x3FE62E42FEFA3BDC)
115-
; CHECK-NEXT: ret double [[RES]]
108+
; CHECK-NEXT: ret double 0x3FF40000000000B8
116109
;
117110
%res = call double @llvm.cosh.f64(double 0.69314718056)
118111
ret double %res
119112
}
120113

121114
define double @test_cosh_ln5() {
122115
; CHECK-LABEL: define double @test_cosh_ln5() {
123-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.cosh.f64(double 0x3FF9C041F7ED4511)
124-
; CHECK-NEXT: ret double [[RES]]
116+
; CHECK-NEXT: ret double 0x4004CCCCCCCC763D
125117
;
126118
%res = call double @llvm.cosh.f64(double 1.60943791243)
127119
ret double %res
128120
}
129121

130122
define <2 x double> @test_cosh_v2() {
131123
; CHECK-LABEL: define <2 x double> @test_cosh_v2() {
132-
; CHECK-NEXT: [[RESULT:%.*]] = call <2 x double> @llvm.cosh.v2f64(<2 x double> zeroinitializer)
133-
; CHECK-NEXT: ret <2 x double> [[RESULT]]
124+
; CHECK-NEXT: ret <2 x double> splat (double 1.000000e+00)
134125
;
135126
%result = call <2 x double> @llvm.cosh.v2f64(<2 x double> zeroinitializer)
136127
ret <2 x double> %result
137128
}
138129

139130
define double @test_cosh_neg0() {
140131
; CHECK-LABEL: define double @test_cosh_neg0() {
141-
; CHECK-NEXT: [[RES:%.*]] = call double @llvm.cosh.f64(double -0.000000e+00)
142-
; CHECK-NEXT: ret double [[RES]]
132+
; CHECK-NEXT: ret double 1.000000e+00
143133
;
144134
%res = call double @llvm.cosh.f64(double -0.0)
145135
ret double %res

0 commit comments

Comments
 (0)