/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/ |
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 22 ; CHECK-NEXT: [[P1000:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xH63D0) 24 ; CHECK-NEXT: [[N1000:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xHE3D0) 26 ; CHECK-NEXT: [[PINF:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xH7C00) 28 ; CHECK-NEXT: [[NINF:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xHFC00) 30 ; CHECK-NEXT: [[NAN:%.*]] = call half @llvm.amdgcn.cos.f16(half 0xH7E00) 34 %p0 = call half @llvm.amdgcn.cos.f16(half +0.0) 36 %n0 = call half @llvm.amdgcn.cos.f16(half -0.0) [all …]
|
/external/llvm-project/libc/test/src/math/ |
D | sincosf_test.cpp | 37 float sin, cos; in TEST() local 39 __llvm_libc::sincosf(valueFromBits(BitPatterns::aQuietNaN), &sin, &cos); in TEST() 40 EXPECT_TRUE(isQuietNaN(cos)); in TEST() 45 &cos); in TEST() 46 EXPECT_TRUE(isNegativeQuietNaN(cos)); in TEST() 50 __llvm_libc::sincosf(valueFromBits(BitPatterns::aSignallingNaN), &sin, &cos); in TEST() 51 EXPECT_TRUE(isQuietNaN(cos)); in TEST() 56 &cos); in TEST() 57 EXPECT_TRUE(isNegativeQuietNaN(cos)); in TEST() 61 __llvm_libc::sincosf(valueFromBits(BitPatterns::zero), &sin, &cos); in TEST() [all …]
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | cos-sin-intrinsic.ll | 4 declare double @llvm.cos.f64(double %Val) 5 declare float @llvm.cos.f32(float %Val) 6 declare <2 x float> @llvm.cos.v2f32(<2 x float> %Val) 15 %r = call double @llvm.cos.f64(double undef) 21 ; CHECK-NEXT: [[COSVAL:%.*]] = call float @llvm.cos.f32(float [[D:%.*]]) 25 %cosval = call float @llvm.cos.f32(float %d) 26 %cosval2 = call float @llvm.cos.f32(float undef) 33 ; CHECK-NEXT: [[COS:%.*]] = call float @llvm.cos.f32(float [[X:%.*]]) 37 %cos = call float @llvm.cos.f32(float %x.fneg) 38 ret float %cos [all …]
|
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
|
D | fdiv-cos-sin.ll | 6 ; CHECK-NEXT: [[TMP1:%.*]] = call double @llvm.cos.f64(double [[A:%.*]]) 11 %1 = call double @llvm.cos.f64(double %a) 19 ; CHECK-NEXT: [[TMP1:%.*]] = 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) 56 ; CHECK-NEXT: [[TMP1:%.*]] = call reassoc double @llvm.cos.f64(double [[A:%.*]]) 62 %1 = call reassoc double @llvm.cos.f64(double %a) 75 %1 = call reassoc double @llvm.cos.f64(double %a) 83 ; CHECK-NEXT: [[TMP1:%.*]] = call reassoc half @llvm.cos.f16(half [[A:%.*]]) [all …]
|
D | fdiv-sin-cos.ll | 7 ; CHECK-NEXT: [[TMP2:%.*]] = call double @llvm.cos.f64(double [[A]]) 12 %2 = call double @llvm.cos.f64(double %a) 20 ; CHECK-NEXT: [[TMP2:%.*]] = call reassoc 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) 55 ; CHECK-NEXT: [[TMP2:%.*]] = call reassoc 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) [all …]
|
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); 24 ; ANY-NEXT: [[COS:%.*]] = call double @cos(double [[X:%.*]]) 28 %r = call double @cos(double %neg) 34 ; ANY-NEXT: [[COS:%.*]] = call double @cos(double [[X:%.*]]) 38 %r = call double @cos(double %neg) 276 ; NO-FLOAT-SHRINK-NEXT: [[COS1:%.*]] = call double @cos(double [[CONV1]]) 286 %cos = call double @cos(double %neg) [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | cos-1.ll | 1 ; Test that the cos library call simplifier works correctly. 8 declare double @cos(double) 10 ; Check cos(-x) -> cos(x); 15 %cos = call double @cos(double %neg) 16 ; NO-FLOAT-SHRINK: call double @cos(double %d) 17 ret double %cos 24 %cos = call double @cos(double %neg) 25 %conv2 = fptrunc double %cos to float 34 %cos = call double @cos(double %neg) 35 ; NO-FLOAT-SHRINK: call double @cos(double %conv1) [all …]
|
D | cos-intrinsic.ll | 2 ; This test makes sure that the undef is propagated for the cos instrinsic 4 declare double @llvm.cos.f64(double %Val) 5 declare float @llvm.cos.f32(float %Val) 11 %1 = call double @llvm.cos.f64(double undef) 19 ; CHECK-NEXT: %cosval = call float @llvm.cos.f32(float %d) 20 %cosval = call float @llvm.cos.f32(float %d) 21 %cosval2 = call float @llvm.cos.f32(float undef)
|
/external/llvm-project/llvm/test/CodeGen/AArch64/ |
D | sincos-expansion.ll | 6 %cos = call float @cosf(float %f) readnone 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 44 %cos = call fp128 @cosl(fp128 %f) readnone [all …]
|
D | sincospow-vector-expansion.ll | 10 ; CHECK: bl cos 11 ; CHECK: bl cos 13 ; GISEL: bl cos 14 ; GISEL: bl cos 15 %1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1) 42 declare <2 x double> @llvm.cos.v2f64(<2 x double>) 49 ; CHECK: bl cos 50 ; CHECK: bl cos 52 ; GISEL: bl cos 53 ; GISEL: bl cos [all …]
|
/external/skia/resources/sksl/intrinsics/ |
D | Cos.sksl | 6 return (cos(input.x) == expected.x && 7 cos(input.xy) == expected.xy && 8 cos(input.xyz) == expected.xyz && 9 cos(input.xyzw) == expected.xyzw && 10 cos(constVal.x) == expected.x && 11 cos(constVal.xy) == expected.xy && 12 cos(constVal.xyz) == expected.xyz && 13 cos(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
/external/llvm/test/CodeGen/AArch64/ |
D | sincos-expansion.ll | 5 %cos = call float @cosf(float %f) readnone 8 %val = fadd float %sin, %cos 14 %cos = call double @cos(double %f) readnone 15 %val = fadd double %sin, %cos 17 ; CHECK: bl cos 23 %cos = call fp128 @cosl(fp128 %f) readnone 24 %val = fadd fp128 %sin, %cos 34 declare double @cos(double) readonly
|
D | sincospow-vector-expansion.ll | 6 ; CHECK: bl cos 7 ; CHECK: bl cos 8 %1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1) 31 declare <2 x double> @llvm.cos.v2f64(<2 x double>) 37 ; CHECK: bl cos 38 ; CHECK: bl cos 39 %1 = call <2 x float> @llvm.cos.v2f32(<2 x float> %v1) 59 declare <2 x float> @llvm.cos.v2f32(<2 x float>) 65 ; CHECK: bl cos 66 ; CHECK: bl cos [all …]
|
/external/rust/crates/plotters/src/coord/ranged3d/ |
D | projection.rs | 99 a.cos() * b.cos(), in rotate() 100 a.cos() * b.sin() * c.sin() - a.sin() * c.cos(), in rotate() 101 a.cos() * b.sin() * c.cos() + a.sin() * c.sin(), in rotate() 105 a.sin() * b.cos(), in rotate() 106 a.sin() * b.sin() * c.sin() + a.cos() * c.cos(), in rotate() 107 a.sin() * b.sin() * c.cos() - a.cos() * c.sin(), in rotate() 110 [-b.sin(), b.cos() * c.sin(), b.cos() * c.cos(), 0.0], in rotate()
|
/external/llvm-project/llvm/test/CodeGen/VE/Scalar/ |
D | fcos.ll | 3 ;;; Test ‘llvm.cos.*’ intrinsic 6 ;;; This is an overloaded intrinsic. You can use llvm.cos on any 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) 14 ;;; declare ppc_fp128 @llvm.cos.ppcf128(ppc_fp128 %Val) 17 ;;; The ‘llvm.cos.*’ intrinsics return the cosine of the operand. 23 ;;; Return the same value as a corresponding libm ‘cos’ function but without 41 %2 = tail call fast float @llvm.cos.f32(float %0) [all …]
|
/external/skia/gm/ |
D | strokedlines.cpp | 41 SkScalar cos, sin; in draw_fins() local 45 cos = SkScalarCos(angle + (SK_ScalarPI/4)); in draw_fins() 47 cos *= kRadius / 2.0f; in draw_fins() 51 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 56 cos = SkScalarCos(angle - (SK_ScalarPI/4)); in draw_fins() 58 cos *= kRadius / 2.0f; in draw_fins() 62 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 71 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local 74 cos = SkScalarCos(angle); in draw_snowflake() 76 cos *= kRadius; in draw_snowflake() [all …]
|
/external/skqp/gm/ |
D | strokedlines.cpp | 25 SkScalar cos, sin; in draw_fins() local 28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos); in draw_fins() 30 cos *= kRadius / 2.0f; in draw_fins() 34 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos); in draw_fins() 40 cos *= kRadius / 2.0f; in draw_fins() 44 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 53 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local 55 sin = SkScalarSinCos(angle, &cos); in draw_snowflake() 57 cos *= kRadius; in draw_snowflake() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
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
|
/external/llvm-project/llvm/test/CodeGen/AMDGPU/ |
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
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | performance-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()
|
/external/llvm-project/llvm/test/Transforms/DCE/ |
D | calls-errno.ll | 9 declare double @cos(double) nounwind 69 ; cos(0) is 1 70 %cos1 = call double @cos(double 0.000000e+00) 72 ; cos(inf) is a domain error 73 ; CHECK-NEXT: %cos2 = call double @cos(double 0x7FF0000000000000) 74 %cos2 = call double @cos(double 0x7FF0000000000000) 76 ; cos(0) nobuiltin may have side effects 77 ; CHECK-NEXT: %cos3 = call double @cos(double 0.000000e+00) 78 %cos3 = call double @cos(double 0.000000e+00) nobuiltin 103 ; cos(1) strictfp sets FP status flags [all …]
|
/external/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | euler_angles.inl | 14 T cosX = glm::cos(angleX); 30 T cosY = glm::cos(angleY); 46 T cosZ = glm::cos(angleZ); 63 T cosX = glm::cos(angleX); 65 T cosY = glm::cos(angleY); 82 T cosX = glm::cos(angleX); 84 T cosY = glm::cos(angleY); 142 T c1 = glm::cos(-t1); 143 T c2 = glm::cos(-t2); 144 T c3 = glm::cos(-t3); [all …]
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | CipherOutputStreamTest.java | 109 CipherOutputStream cos = new CipherOutputStream(os, cipher); in testEncrypt() local 110 cos.write(t.pt); in testEncrypt() 111 cos.close(); in testEncrypt() 123 CipherOutputStream cos = new CipherOutputStream(os, cipher); in testDecrypt() local 124 cos.write(t.ct); in testDecrypt() 125 cos.close(); in testDecrypt() 139 CipherOutputStream cos = new CipherOutputStream(os, cipher); in testCorruptDecrypt() local 140 cos.write(ct); in testCorruptDecrypt() 143 cos.close(); in testCorruptDecrypt() 170 CipherOutputStream cos = new CipherOutputStream(os, cipher); in testCorruptDecryptEmpty() local [all …]
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | StemFunction.h | 29 using std::cos; in stem_function_cos() 35 res = std::cos(x); in stem_function_cos() 41 res = -std::cos(x); in stem_function_cos() 54 using std::cos; in stem_function_sin() 63 res = std::cos(x); in stem_function_sin() 69 res = -std::cos(x); in stem_function_sin()
|