Skip to content

Commit 991700b

Browse files
committed
pre-commit test
1 parent f605d85 commit 991700b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2+
; RUN: opt -S -passes=early-cse < %s | FileCheck %s
3+
4+
define double @test_sinh() {
5+
; CHECK-LABEL: define double @test_sinh() {
6+
; CHECK-NEXT: [[RESULT:%.*]] = call double @llvm.sinh.f64(double 0.000000e+00)
7+
; CHECK-NEXT: ret double [[RESULT]]
8+
;
9+
%result = call double @llvm.sinh.f64(double 0.0)
10+
ret double %result
11+
}
12+
13+
define <2 x double> @test_sinh_v2() {
14+
; CHECK-LABEL: define <2 x double> @test_sinh_v2() {
15+
; CHECK-NEXT: [[RESULT:%.*]] = call <2 x double> @llvm.sinh.v2f64(<2 x double> zeroinitializer)
16+
; CHECK-NEXT: ret <2 x double> [[RESULT]]
17+
;
18+
%result = call <2 x double> @llvm.sinh.v2f64(<2 x double> zeroinitializer)
19+
ret <2 x double> %result
20+
}
21+
22+
define double @test_cosh() {
23+
; CHECK-LABEL: define double @test_cosh() {
24+
; CHECK-NEXT: [[RESULT:%.*]] = call double @llvm.cosh.f64(double 0.000000e+00)
25+
; CHECK-NEXT: ret double [[RESULT]]
26+
;
27+
%result = call double @llvm.cosh.f64(double 0.0)
28+
ret double %result
29+
}
30+
31+
define <2 x double> @test_cosh_v2() {
32+
; CHECK-LABEL: define <2 x double> @test_cosh_v2() {
33+
; CHECK-NEXT: [[RESULT:%.*]] = call <2 x double> @llvm.cosh.v2f64(<2 x double> zeroinitializer)
34+
; CHECK-NEXT: ret <2 x double> [[RESULT]]
35+
;
36+
%result = call <2 x double> @llvm.cosh.v2f64(<2 x double> zeroinitializer)
37+
ret <2 x double> %result
38+
}
39+
40+

0 commit comments

Comments
 (0)