/llvm-project/clang/test/CodeGenHLSL/builtins/ |
H A D | tanh.hlsl | 10 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn half @llvm.tanh.f16 11 // NO_HALF: call reassoc nnan ninf nsz arcp afn float @llvm.tanh.f32 13 return tanh ( p0 ); 17 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <2 x half> @llvm.tanh.v2f16 18 // NO_HALF: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.tanh.v2f32 20 return tanh ( p0 ); 24 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <3 x half> @llvm.tanh.v3f16 25 // NO_HALF: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.tanh.v3f32 27 return tanh ( p0 ); 31 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <4 x half> @llvm.tanh [all...] |
/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ |
H A D | tanh.ll | 13 ; CHECK: %[[#]] = OpExtInst %[[#float_32]] %[[#op_ext_glsl]] Tanh %[[#arg0]] 14 %elt.tanh = call float @llvm.tanh.f32(float %a) 15 ret float %elt.tanh 21 ; CHECK: %[[#]] = OpExtInst %[[#float_16]] %[[#op_ext_glsl]] Tanh %[[#arg0]] 22 %elt.tanh = call half @llvm.tanh.f16(half %a) 23 ret half %elt.tanh 29 ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_32]] %[[#op_ext_glsl]] Tanh %[[#arg0]] 30 %elt.tanh [all...] |
/llvm-project/llvm/test/CodeGen/DirectX/ |
H A D | tanh.ll | 3 ; Make sure dxil operation function calls for tanh are generated for float and half. 8 %elt.tanh = call float @llvm.tanh.f32(float %a) 9 ret float %elt.tanh 15 %elt.tanh = call half @llvm.tanh.f16(half %a) 16 ret half %elt.tanh 33 %2 = call <4 x float> @llvm.tanh.v4f32(<4 x float> %a) 39 declare half @llvm.tanh.f16(half) 40 declare float @llvm.tanh [all...] |
H A D | tanh_error.ll | 3 ; DXIL operation tanh does not support double overload type 9 %1 = call double @llvm.tanh.f64(double %a)
|
/llvm-project/flang/test/Lower/math-lowering/ |
H A D | tanh.f90 | 10 test_real4 = tanh(x) 14 ! FAST: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f32 15 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f32 20 test_real8 = tanh(x) 24 ! FAST: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f64 25 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f64 26 ! PRECISE: {{%[A-Za-z0-9._]+}} = fir.call @tanh({{%[A-Za-z0-9._]+}}) {{.*}}: (f64) -> f64 29 ! PRECISE-DAG: func.func private @tanh(f64) -> f64 attributes {fir.bindc_name = "tanh", fir.runtime}
|
/llvm-project/libcxx/include/__math/ |
H A D | hyperbolic_functions.h | 56 // tanh 58 inline _LIBCPP_HIDE_FROM_ABI float tanh(float __x) _NOEXCEPT { return __builtin_tanhf(__x); } in tanh() function 61 _LIBCPP_HIDE_FROM_ABI double tanh(double __x) _NOEXCEPT { in tanh() function 65 inline _LIBCPP_HIDE_FROM_ABI long double tanh(long double __x) _NOEXCEPT { return __builtin_tanhl(_… in tanh() function 68 inline _LIBCPP_HIDE_FROM_ABI double tanh(_A1 __x) _NOEXCEPT { in tanh() function
|
/llvm-project/libclc/generic/lib/math/ |
H A D | tanh.cl | 27 _CLC_OVERLOAD _CLC_DEF float tanh(float x) 29 // The definition of tanh(x) is sinh(x)/cosh(x), which is also equivalent 74 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, tanh, float); 80 _CLC_OVERLOAD _CLC_DEF double tanh(double x) 82 // The definition of tanh(x) is sinh(x)/cosh(x), which is also equivalent 143 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, tanh, double); 151 _CLC_DEFINE_UNARY_BUILTIN_FP16(tanh)
|
/llvm-project/libc/src/math/nvptx/ |
H A D | tanh.cpp | 1 //===-- Implementation of the tanh function for GPU -----------------------===// 9 #include "src/math/tanh.h" 17 LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __nv_tanh(x); }
|
H A D | CMakeLists.txt | 437 tanh 439 tanh.cpp 441 ../tanh.h
|
/llvm-project/libc/src/math/amdgpu/ |
H A D | tanh.cpp | 1 //===-- Implementation of the tanh function for GPU -----------------------===// 9 #include "src/math/tanh.h" 17 LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __ocml_tanh_f64(x); }
|
H A D | CMakeLists.txt | 484 tanh 486 tanh.cpp 488 ../tanh.h
|
/llvm-project/flang/test/Evaluate/ |
H A D | folding02.f90 | 75 TEST_R4(tanh, tanh(3._4), 0.995054781436920166015625_4) 128 TEST_R8(tanh, tanh(3._8), & 164 TEST_C4(tanh, tanh((0.4_4, 1.1_4)), & 214 TEST_C8(tanh, tanh((0.4_8, 1.1_8)), &
|
/llvm-project/libc/test/src/math/ |
H A D | tanhf_test.cpp | 49 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, x, in TEST_F() 65 EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, x, in TEST_F() 67 EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, -x, in TEST_F()
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | integer-division.cpp | 28 long double tanh(long double); 110 tanh(f / g); in integerDivision() 124 tanh(c / g); in integerDivision() 129 tanh(3.14 / f / g); in integerDivision()
|
/llvm-project/libc/src/math/ |
H A D | tanh.h | 1 //===-- Implementation header for tanh --------------------------*- C++ -*-===// 16 double tanh(double x);
|
/llvm-project/flang/runtime/Float128Math/ |
H A D | math-entries.h | 105 DEFINE_FALLBACK_F128(Tanh) 154 DEFINE_SIMPLE_ALIAS(Tanh, tanhq) 207 DEFINE_SIMPLE_ALIAS(Tanh, std::tanh)
|
H A D | tanh.cpp | 1 //===-- runtime/Float128Math/tanh.cpp -------------------------------------===// 17 return Tanh<true>::invoke(x); in RTDEF()
|
/llvm-project/mlir/test/Analysis/ |
H A D | test-shape-fn-report.mlir | 6 func.func @tanh(%arg: tensor<10x20xf32>) -> tensor<10x20xf32> 9 %0 = math.tanh %arg : tensor<10x20xf32>
|
/llvm-project/mlir/test/Integration/Dialect/Complex/CPU/ |
H A D | correctness.mlir | 37 func.func @tanh(%arg: complex<f32>) -> complex<f32> { 38 %tanh = complex.tanh %arg : complex<f32> 39 func.return %tanh : complex<f32> 206 // complex.tanh test 233 %tanh_func = func.constant @tanh : (complex<f32>) -> complex<f32>
|
/llvm-project/mlir/test/Dialect/Complex/ |
H A D | ops.mlir | 71 // CHECK: complex.tanh %[[C]] : complex<f32> 72 %tanh = complex.tanh %complex : complex<f32>
|
/llvm-project/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
H A D | tanh.pass.cpp | 13 // tanh(const complex<T>& x); 25 assert(tanh(c) == x); in test() 40 std::complex<double> r = tanh(testcases[i]); in test_edges()
|
/llvm-project/mlir/test/Conversion/MathToSPIRV/ |
H A D | math-to-opencl-spirv.mlir | 37 // CHECK: spirv.CL.tanh %{{.*}}: f32 38 %11 = math.tanh %arg0 : f32 86 // CHECK: spirv.CL.tanh %{{.*}}: vector<3xf32> 87 %11 = math.tanh %arg0 : vector<3xf32>
|
/llvm-project/libcxx/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/ |
H A D | tanh_valarray.pass.cpp | 15 // tanh(const valarray<T>& x); 36 std::valarray<T> v3 = tanh(v1); in main()
|
/llvm-project/mlir/test/Dialect/Math/ |
H A D | ops.mlir | 224 // CHECK-LABEL: func @tanh( 226 func.func @tanh(%f: f32, %v: vector<4xf32>, %t: tensor<4x4x?xf32>) { 227 // CHECK: %{{.*}} = math.tanh %[[F]] : f32 228 %0 = math.tanh %f : f32 229 // CHECK: %{{.*}} = math.tanh %[[V]] : vector<4xf32> 230 %1 = math.tanh %v : vector<4xf32> 231 // CHECK: %{{.*}} = math.tanh %[[T]] : tensor<4x4x?xf32> 232 %2 = math.tanh %t : tensor<4x4x?xf32>
|
/llvm-project/clang/test/Headers/Inputs/include/ |
H A D | cmath | 152 double tanh(double); 153 float tanh(float); 226 using ::tanh;
|