| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/ |
| H A D | cos.ll | 4 declare half @llvm.amdgcn.cos.f16(half) #0 5 declare float @llvm.amdgcn.cos.f32(float) #0 6 declare double @llvm.amdgcn.cos.f64(double) #0 34 %p0 = call half @llvm.amdgcn.cos.f16(half +0.0) 36 %n0 = call half @llvm.amdgcn.cos.f16(half -0.0) 42 %p025 = call half @llvm.amdgcn.cos.f16(half +0.25) 44 %n025 = call half @llvm.amdgcn.cos.f16(half -0.25) 46 %p05 = call half @llvm.amdgcn.cos.f16(half +0.5) 48 %n05 = call half @llvm.amdgcn.cos.f16(half -0.5) 50 %p1 = call half @llvm.amdgcn.cos.f16(half +1.0) [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | cos-sin-intrinsic.ll | 37 %cos = call float @llvm.cos.f32(float %x.fneg) 38 ret float %cos 47 %cos = call float @llvm.cos.f32(float %x.fneg) 48 ret float %cos 57 %cos = call <2 x float> @llvm.cos.v2f32(<2 x float> %x.fneg) 67 %cos = call <2 x float> @llvm.cos.v2f32(<2 x float> %x.fneg) 99 %cos = call float @llvm.cos.f32(float %x.fabs) 100 ret float %cos 110 %cos = call float @llvm.cos.f32(float %x.fabs.fneg) 111 ret float %cos [all …]
|
| H A D | cos-2.ll | 5 declare float @cos(double) 13 %cos = call float @cos(double %neg) 14 ; CHECK: call float @cos(double %neg) 15 ret float %cos 21 %cos = call float @cos(double %neg) 22 ; CHECK: call float @cos(double %neg) 23 ret float %cos
|
| H A D | fdiv-cos-sin.ll | 11 %1 = call double @llvm.cos.f64(double %a) 24 %1 = call double @llvm.cos.f64(double %a) 36 %1 = call double @llvm.cos.f64(double %a) 48 %1 = call reassoc double @llvm.cos.f64(double %a) 62 %1 = call reassoc double @llvm.cos.f64(double %a) 88 %1 = call reassoc half @llvm.cos.f16(half %a) 100 %1 = call reassoc float @llvm.cos.f32(float %a) 118 declare half @llvm.cos.f16(half) #1 119 declare float @llvm.cos.f32(float) #1 120 declare double @llvm.cos.f64(double) #1 [all …]
|
| H A D | fdiv-sin-cos.ll | 12 %2 = call double @llvm.cos.f64(double %a) 25 %2 = call reassoc double @llvm.cos.f64(double %a) 36 %2 = call double @llvm.cos.f64(double %a) 47 %2 = call double @llvm.cos.f64(double %a) 61 %2 = call reassoc double @llvm.cos.f64(double %a) 73 %2 = call reassoc double @llvm.cos.f64(double %a) 84 %2 = call reassoc float @llvm.cos.f32(float %a) 95 %2 = call reassoc fp128 @llvm.cos.fp128(fp128 %a) 104 declare double @llvm.cos.f64(double) #1 105 declare float @llvm.cos.f32(float) #1 [all …]
|
| H A D | cos-1.ll | 7 declare double @cos(double) 8 declare double @llvm.cos.f64(double) 10 declare float @llvm.cos.f32(float) 20 ; cos(-x) -> cos(x); 28 %r = call double @cos(double %neg) 38 %r = tail call double @cos(double %neg) 59 %r = call double @cos(double %neg) 339 %cos = call double @cos(double %neg) 357 %cos = call double @cos(double %neg) 373 %cos = call double @llvm.cos.f64(double %neg) [all …]
|
| H A D | pr26993.ll | 13 %cos = call double @__cospi(double 1.0) 14 ret double %cos 18 ; CHECK: %[[cos:.*]] = call double @__cospi(double 1.000000e+00) 19 ; CHECK-NEXT: ret double %[[cos]]
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | sincosf_test.cpp | 30 float sin, cos; in TEST() local 32 __llvm_libc::sincosf(aNaN, &sin, &cos); in TEST() 33 EXPECT_FP_EQ(aNaN, cos); in TEST() 37 __llvm_libc::sincosf(0.0f, &sin, &cos); in TEST() 38 EXPECT_FP_EQ(1.0f, cos); in TEST() 43 EXPECT_FP_EQ(1.0f, cos); in TEST() 47 __llvm_libc::sincosf(inf, &sin, &cos); in TEST() 48 EXPECT_FP_EQ(aNaN, cos); in TEST() 53 EXPECT_FP_EQ(aNaN, cos); in TEST() 66 float sin, cos; in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | sincos-expansion.ll | 8 %val = fadd float %sin, %cos 15 %cos = call float @cosf(float %f) 18 %val = fadd float %sin, %cos 25 %cos = call double @cos(double %f) readnone 26 %val = fadd double %sin, %cos 34 %cos = call double @cos(double %f) 35 %val = fadd double %sin, %cos 37 ; CHECK: bl cos 45 %val = fadd fp128 %sin, %cos 54 %val = fadd fp128 %sin, %cos [all …]
|
| H A D | sincospow-vector-expansion.ll | 10 ; CHECK: bl cos 11 ; CHECK: bl cos 13 ; GISEL: bl cos 14 ; GISEL: bl cos 49 ; CHECK: bl cos 50 ; CHECK: bl cos 52 ; GISEL: bl cos 53 ; GISEL: bl cos 85 ; CHECK: bl cos 86 ; CHECK: bl cos [all …]
|
| H A D | arm64-sincos.ll | 5 ; Combine sin / cos into a single call unless they may write errno (as 51 %call1 = tail call double @cos(double %x) readnone 64 ; CHECK-LINUX: bl cos 67 %call1 = tail call double @cos(double %x) 75 declare double @cos(double)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/VE/Scalar/ |
| H A D | fcos.ll | 3 ;;; Test ‘llvm.cos.*’ intrinsic 10 ;;; declare float @llvm.cos.f32(float %Val) 11 ;;; declare double @llvm.cos.f64(double %Val) 12 ;;; declare x86_fp80 @llvm.cos.f80(x86_fp80 %Val) 13 ;;; declare fp128 @llvm.cos.f128(fp128 %Val) 41 %2 = tail call fast float @llvm.cos.f32(float %0) 46 declare float @llvm.cos.f32(float) 52 ; CHECK-NEXT: lea %s1, cos@lo 54 ; CHECK-NEXT: lea.sl %s12, cos@hi(, %s1) 62 declare double @llvm.cos.f64(double) [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | llvm.cos.ll | 15 %cos = call float @llvm.cos.f32(float %x) 16 store float %cos, float addrspace(1)* %out 33 %cos = call <4 x float> @llvm.cos.v4f32(<4 x float> %vx) 34 store <4 x float> %cos, <4 x float> addrspace(1)* %out 38 declare float @llvm.cos.f32(float) readnone 39 declare <4 x float> @llvm.cos.v4f32(<4 x float>) readnone
|
| H A D | llvm.amdgcn.cos.ll | 4 declare float @llvm.amdgcn.cos.f32(float) #0 9 %cos = call float @llvm.amdgcn.cos.f32(float %src) #0 10 store float %cos, float addrspace(1)* %out
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | type-promotion-in-math-fn.cpp | 15 double cos(double); 98 cos(a); in check_all_fns() 290 float cos(float); // not a math.h function (wrong signature) 291 double cos(double, double); // not a math.h function (wrong signature) 294 void cos(float); 301 cos(0.); // no warning because arg is a double in check_no_warnings() 302 std::cos(0.f); // no warning because not ::cos. in check_no_warnings() 304 cos(0.f); // does not match the expected signature of ::cos in check_no_warnings() 305 cos(0.f, 0.f); // does not match the expected signature of ::cos in check_no_warnings()
|
| /llvm-project-15.0.7/llvm/test/Transforms/DCE/ |
| H A D | calls-errno.ll | 9 declare double @cos(double) nounwind willreturn 52 ; CHECK-NEXT: [[COS2:%.*]] = call double @cos(double 0x7FF0000000000000) 53 ; CHECK-NEXT: [[COS3:%.*]] = call double @cos(double 0.000000e+00) [[ATTR2:#.*]] 74 ; cos(0) is 1 75 %cos1 = call double @cos(double 0.000000e+00) 77 ; cos(inf) is a domain error 78 %cos2 = call double @cos(double 0x7FF0000000000000) 80 ; cos(0) nobuiltin may have side effects 81 %cos3 = call double @cos(double 0.000000e+00) nobuiltin 107 ; cos(1) strictfp sets FP status flags [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AVR/ |
| H A D | runtime-trig.ll | 3 ; Checks that `sin` and `cos` nodes are expanded into calls to 4 ; the `sin` and `cos` runtime library functions. 9 declare float @llvm.cos.f32(float %x) 19 ; CHECK: {{cos$}} 21 %result = call float @llvm.cos.f32(float %a)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
| H A D | legalize-fcos.mir | 21 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s32) 30 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s32) 38 ; GFX9-NEXT: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[FMUL]](s32) 58 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s64) 67 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s64) 75 ; GFX9-NEXT: [[INT:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[FMUL]](s64) 96 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s32) 108 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s16) 142 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s32) 156 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.cos), [[INT]](s32) [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | v7k-sincos.ll | 4 declare double @cos(double) nounwind readnone 13 %cos = call double @cos(double %in) 14 %sum = fadd double %sin, %cos
|
| H A D | sincos.ll | 9 ; Combine sin / cos into a single call unless they may write errno (as 74 ; NOOPT-ANDROID: bl cos 77 %call1 = tail call double @cos(double %x) readnone 90 ; SINCOS-GNU: bl cos 98 ; NOOPT-ANDROID: bl cos 101 %call1 = tail call double @cos(double %x) 109 declare double @cos(double)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/GlobalISel/ |
| H A D | legalize-cos.mir | 6 name: test_v4f16.cos 15 ; CHECK-LABEL: name: test_v4f16.cos 59 name: test_v8f16.cos 69 ; CHECK-LABEL: name: test_v8f16.cos 93 name: test_v2f32.cos 103 ; CHECK-LABEL: name: test_v2f32.cos 127 name: test_v4f32.cos 136 ; CHECK-LABEL: name: test_v4f32.cos 172 name: test_v2f64.cos 187 ; CHECK-DAG: BL &cos [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | ctrloop-constrained-fp.ll | 23 ; CHECK-NEXT: bl cos 46 …%cos = tail call nnan ninf nsz arcp double @llvm.experimental.constrained.cos.f64(double %val, met… 47 store double %cos, double* %idx, align 8 76 …%cos = tail call nnan ninf nsz arcp double @llvm.experimental.constrained.sqrt.f64(double %val, me… 77 store double %cos, double* %idx, align 8 86 declare double @llvm.experimental.constrained.cos.f64(double, metadata, metadata)
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | VecFuncs.def | 53 TLI_DEFINE_VECFUNC("llvm.cos.f32", "vcosf", FIXED(4)) 87 TLI_DEFINE_VECFUNC("cos", "_simd_cos_d2", FIXED(2)) 88 TLI_DEFINE_VECFUNC("llvm.cos.f64", "_simd_cos_d2", FIXED(2)) 136 TLI_DEFINE_VECFUNC("cos", "_ZGVbN2v_cos", FIXED(2)) 137 TLI_DEFINE_VECFUNC("cos", "_ZGVdN4v_cos", FIXED(4)) 244 TLI_DEFINE_VECFUNC("cos", "__cosd2", FIXED(2)) 245 TLI_DEFINE_VECFUNC("llvm.cos.f64", "__cosd2", FIXED(2)) 247 TLI_DEFINE_VECFUNC("llvm.cos.f32", "__cosf4", FIXED(4)) 293 TLI_DEFINE_VECFUNC("cos", "__svml_cos2", FIXED(2)) 294 TLI_DEFINE_VECFUNC("cos", "__svml_cos4", FIXED(4)) [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/AMDGPU/ |
| H A D | tan.ll | 3 ; Check that sin/cos is not folded to tan on amdgcn. 7 ; GCN: call float @llvm.cos.f32 10 declare float @llvm.cos.f32(float) #0 15 %tmp33 = call float @llvm.cos.f32(float %arg)
|
| /llvm-project-15.0.7/libc/src/math/x86_64/ |
| H A D | CMakeLists.txt | 2 cos 4 cos.cpp 6 ../cos.h
|