Skip to content

Commit be4d06c

Browse files
committed
precision issue
1 parent 67752c4 commit be4d06c

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,9 @@ define double @test_sinh_0() {
1111

1212
define double @test_sinh_ln2() {
1313
; CHECK-LABEL: define double @test_sinh_ln2() {
14-
; CHECK-NEXT: ret double 0x3FE8000000000268
14+
; CHECK-NEXT: ret double 7.500000e-01
1515
;
16-
%res = call double @llvm.sinh.f64(double 0.69314718056)
17-
ret double %res
18-
}
19-
20-
define double @test_sinh_ln5() {
21-
; CHECK-LABEL: define double @test_sinh_ln5() {
22-
; CHECK-NEXT: ret double 0x400333333332D56D
23-
;
24-
%res = call double @llvm.sinh.f64(double 1.60943791243)
16+
%res = call double @llvm.sinh.f64(double 0x3fe62e42fefa39ef)
2517
ret double %res
2618
}
2719

@@ -105,17 +97,9 @@ define double @test_cosh_0() {
10597

10698
define double @test_cosh_ln2() {
10799
; CHECK-LABEL: define double @test_cosh_ln2() {
108-
; CHECK-NEXT: ret double 0x3FF40000000000B8
109-
;
110-
%res = call double @llvm.cosh.f64(double 0.69314718056)
111-
ret double %res
112-
}
113-
114-
define double @test_cosh_ln5() {
115-
; CHECK-LABEL: define double @test_cosh_ln5() {
116-
; CHECK-NEXT: ret double 0x4004CCCCCCCC763D
100+
; CHECK-NEXT: ret double 1.250000e+00
117101
;
118-
%res = call double @llvm.cosh.f64(double 1.60943791243)
102+
%res = call double @llvm.cosh.f64(double 0x3fe62e42fefa39ef)
119103
ret double %res
120104
}
121105

0 commit comments

Comments
 (0)