Home
last modified time | relevance | path

Searched refs:sin (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/
H A Dsin.ll4 declare half @llvm.amdgcn.sin.f16(half) #0
5 declare float @llvm.amdgcn.sin.f32(float) #0
6 declare double @llvm.amdgcn.sin.f64(double) #0
34 %p0 = call half @llvm.amdgcn.sin.f16(half +0.0)
36 %n0 = call half @llvm.amdgcn.sin.f16(half -0.0)
42 %p025 = call half @llvm.amdgcn.sin.f16(half +0.25)
44 %n025 = call half @llvm.amdgcn.sin.f16(half -0.25)
46 %p05 = call half @llvm.amdgcn.sin.f16(half +0.5)
48 %n05 = call half @llvm.amdgcn.sin.f16(half -0.5)
50 %p1 = call half @llvm.amdgcn.sin.f16(half +1.0)
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.sin.ll20 %sin = call float @llvm.sin.f32(float %x)
34 %sin = call float @llvm.sin.f32(float %y)
49 %sin = call float @llvm.sin.f32(float %y)
64 %sin = call reassoc float @llvm.sin.f32(float %y)
78 %sin = call float @llvm.sin.f32(float %y)
93 %sin = call float @llvm.sin.f32(float %y)
108 %sin = call reassoc float @llvm.sin.f32(float %y)
122 %sin = call float @llvm.sin.f32(float %y)
136 %sin = call float @llvm.sin.f32(float %y)
150 %sin = call reassoc float @llvm.sin.f32(float %y)
[all …]
H A Dllvm.amdgcn.sin.ll4 declare float @llvm.amdgcn.sin.f32(float) #0
9 %sin = call float @llvm.amdgcn.sin.f32(float %src) #0
10 store float %sin, float addrspace(1)* %out
/llvm-project-15.0.7/libc/test/src/math/
H A Dsincosf_test.cpp30 float sin, cos; in TEST() local
32 __llvm_libc::sincosf(aNaN, &sin, &cos); in TEST()
34 EXPECT_FP_EQ(aNaN, sin); in TEST()
37 __llvm_libc::sincosf(0.0f, &sin, &cos); in TEST()
39 EXPECT_FP_EQ(0.0f, sin); in TEST()
44 EXPECT_FP_EQ(-0.0f, sin); in TEST()
47 __llvm_libc::sincosf(inf, &sin, &cos); in TEST()
49 EXPECT_FP_EQ(aNaN, sin); in TEST()
54 EXPECT_FP_EQ(aNaN, sin); in TEST()
66 float sin, cos; in TEST() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dinteger-division.cpp26 float sin(float);
31 using ::sin;
36 sin(x); in intDivSin()
44 sin(n / 3); in m()
61 sin(c / (1 + .5)); in integerDivision()
62 sin((c + .5) / 3); in integerDivision()
64 sin(intFunc(3) / 5); in integerDivision()
71 sin(1 + 2 / 3); in integerDivision()
106 std::sin(2 / 3); in integerDivision()
120 sin(a / b); in integerDivision()
[all …]
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Drecv_msg_trunc.cpp17 struct sockaddr_in sin; in main() local
18 socklen_t len = sizeof(sin); in main()
21 sin.sin_family = AF_INET; in main()
23 sin.sin_port = 0; in main()
24 sin.sin_addr.s_addr = INADDR_ANY; in main()
26 assert(bind(fd_1, (struct sockaddr *)&sin, sizeof(sin)) == 0); in main()
28 assert(getsockname(fd_1, (struct sockaddr *)&sin, &len) == 0); in main()
30 (struct sockaddr *)&sin, sizeof(sin)) != -1); in main()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dsincos-expansion.ll8 %val = fadd float %sin, %cos
14 %sin = call float @sinf(float %f)
18 %val = fadd float %sin, %cos
24 %sin = call double @sin(double %f) readnone
26 %val = fadd double %sin, %cos
33 %sin = call double @sin(double %f)
35 %val = fadd double %sin, %cos
36 ; CHECK: bl sin
45 %val = fadd fp128 %sin, %cos
54 %val = fadd fp128 %sin, %cos
[all …]
H A Dsincospow-vector-expansion.ll23 ; CHECK: bl sin
24 ; CHECK: bl sin
26 ; GISEL: bl sin
27 ; GISEL: bl sin
61 ; CHECK: bl sin
62 ; CHECK: bl sin
64 ; GISEL: bl sin
65 ; GISEL: bl sin
101 ; CHECK: bl sin
102 ; CHECK: bl sin
[all …]
/llvm-project-15.0.7/clang/test/OpenMP/
H A Daarch64_vfabi_WidestDataSize.c35 #pragma omp declare simd linear(sin) notinbranch simdlen(2)
36 #pragma omp declare simd linear(sin) notinbranch simdlen(4)
37 #pragma omp declare simd linear(sin) notinbranch simdlen(64)
38 #pragma omp declare simd linear(sin) notinbranch simdlen(68)
39 void WDS_is_sizeof_float_pointee(float in, float *sin);
45 #pragma omp declare simd linear(sin) notinbranch simdlen(2)
46 #pragma omp declare simd linear(sin) notinbranch simdlen(4)
47 #pragma omp declare simd linear(sin) notinbranch simdlen(32)
48 #pragma omp declare simd linear(sin) notinbranch simdlen(34)
49 void WDS_is_sizeof_double_pointee(float in, double *sin);
H A Daarch64_vfabi_NarrowestDataSize.c35 #pragma omp declare simd linear(sin) notinbranch
36 void NDS_is_sizeof_float_with_linear(double in, float *sin);
50 #pragma omp declare simd linear(sin) notinbranch
51 void NDS_is_sizeof_double(double in, double *sin);
/llvm-project-15.0.7/llvm/test/CodeGen/VE/Scalar/
H A Dfsin.ll3 ;;; Test ‘llvm.sin.*’ intrinsic
10 ;;; declare float @llvm.sin.f32(float %Val)
11 ;;; declare double @llvm.sin.f64(double %Val)
12 ;;; declare x86_fp80 @llvm.sin.f80(x86_fp80 %Val)
13 ;;; declare fp128 @llvm.sin.f128(fp128 %Val)
41 %2 = tail call fast float @llvm.sin.f32(float %0)
46 declare float @llvm.sin.f32(float)
52 ; CHECK-NEXT: lea %s1, sin@lo
54 ; CHECK-NEXT: lea.sl %s12, sin@hi(, %s1)
62 declare double @llvm.sin.f64(double)
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dnegative-sin.ll4 declare double @sin(double %f)
14 ; CHECK-NEXT: callq sin@PLT
20 %g = call double @sin(double %f) readonly
31 ; CHECK-NEXT: jmp sin@PLT # TAILCALL
33 %g = call double @sin(double %f) readonly
43 ; CHECK-NEXT: jmp sin@PLT # TAILCALL
45 %g = call double @sin(double %f) readonly
58 ; CHECK-NEXT: callq sin@PLT
63 %g = call double @sin(double %f) readonly
74 ; CHECK-NEXT: callq sin@PLT
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dfdiv-cos-sin.ll12 %2 = call double @llvm.sin.f64(double %a)
25 %2 = call reassoc double @llvm.sin.f64(double %a)
37 %2 = call double @llvm.sin.f64(double %a)
49 %2 = call double @llvm.sin.f64(double %a)
63 %2 = call reassoc double @llvm.sin.f64(double %a)
89 %2 = call reassoc half @llvm.sin.f16(half %a)
101 %2 = call reassoc float @llvm.sin.f32(float %a)
123 declare half @llvm.sin.f16(half) #1
124 declare float @llvm.sin.f32(float) #1
125 declare double @llvm.sin.f64(double) #1
[all …]
H A Dfdiv-sin-cos.ll11 %1 = call double @llvm.sin.f64(double %a)
24 %1 = call double @llvm.sin.f64(double %a)
35 %1 = call double @llvm.sin.f64(double %a)
46 %1 = call reassoc double @llvm.sin.f64(double %a)
60 %1 = call reassoc double @llvm.sin.f64(double %a)
72 %1 = call reassoc double @llvm.sin.f64(double %a)
83 %1 = call reassoc float @llvm.sin.f32(float %a)
94 %1 = call reassoc fp128 @llvm.sin.fp128(fp128 %a)
100 declare double @llvm.sin.f64(double) #1
101 declare float @llvm.sin.f32(float) #1
[all …]
H A Dfold-calls.ll3 ; This shouldn't fold, because sin(inf) is invalid.
5 ; CHECK: %t = call double @sin(double 0x7FF0000000000000)
7 %t = call double @sin(double 0x7FF0000000000000)
15 %t = call double @sin(double 0.0)
19 declare double @sin(double)
H A Dcos-1.ll12 declare double @sin(double)
13 declare double @llvm.sin.f64(double)
15 declare float @llvm.sin.f32(float)
103 ; sin(-x) -> -sin(x);
112 %r = call double @sin(double %neg)
123 %r = call double @sin(double %neg)
192 %r = call double @sin(double %neg)
205 %r = call double @sin(double %neg)
210 ; -sin(-x) --> sin(x)
219 %r = call double @sin(double %neg)
[all …]
H A Dpr26993.ll4 %sin = call double @__sinpi(double 1.0)
5 ret double %sin
9 ; CHECK: %[[sin:.*]] = call double @__sinpi(double 1.000000e+00)
10 ; CHECK-NEXT: ret double %[[sin]]
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.cons/
H A Dimplicit_deduction_guides.pass.cpp83 const std::string sin("abc"); in test() local
84 std::basic_string s(sin, (size_t)1); in test()
99 const std::string sin("abc"); in test() local
115 const std::string sin("abc"); in test() local
131 const std::string sin("abc"); in test() local
224 const std::string sin("abc"); in test() local
225 std::basic_string s(sin); in test()
240 const std::string sin("abc"); in test() local
256 std::string sin("abc"); in test() local
257 std::basic_string s(std::move(sin)); in test()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Druntime-trig.ll3 ; Checks that `sin` and `cos` nodes are expanded into calls to
4 ; the `sin` and `cos` runtime library functions.
8 declare float @llvm.sin.f32(float %x)
13 ; CHECK: {{sin$}}
14 %result = call float @llvm.sin.f32(float %a)
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/
H A Dlegalize-fsin.mir21 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s32)
30 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s32)
38 ; GFX9-NEXT: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[FMUL]](s32)
58 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s64)
67 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s64)
75 ; GFX9-NEXT: [[INT:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[FMUL]](s64)
96 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s32)
108 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s16)
142 ; SI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s32)
156 ; VI-NEXT: [[INT1:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.sin), [[INT]](s32)
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dv7k-sincos.ll3 declare double @sin(double) nounwind readnone
12 %sin = call double @sin(double %in)
14 %sum = fadd double %sin, %cos
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/GlobalISel/
H A Dlegalize-sin.mir6 name: test_v4f16.sin
15 ; CHECK-LABEL: name: test_v4f16.sin
59 name: test_v8f16.sin
69 ; CHECK-LABEL: name: test_v8f16.sin
93 name: test_v2f32.sin
103 ; CHECK-LABEL: name: test_v2f32.sin
127 name: test_v4f32.sin
136 ; CHECK-LABEL: name: test_v4f32.sin
172 name: test_v2f64.sin
187 ; CHECK-DAG: BL &sin
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/LICM/
H A Dlnicm-sink.ll6 ; double sin(double);
12 ; t = sin(x);
20 ; We only want to sink the call of sin out of the loop nest.
38 %call = call double @sin(double %x)
58 ; CHECK: call double @sin(double %x)
64 ; double sin(double);
71 ; t = sin(x);
97 %call = call double @sin(double %x)
124 ; CHECK: call double @sin(double %x)
130 declare dso_local double @sin(double) #0
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DVecFuncs.def51 TLI_DEFINE_VECFUNC("llvm.sin.f32", "vsinf", FIXED(4))
92 TLI_DEFINE_VECFUNC("sin", "_simd_sin_d2", FIXED(2))
93 TLI_DEFINE_VECFUNC("llvm.sin.f64", "_simd_sin_d2", FIXED(2))
124 TLI_DEFINE_VECFUNC("sin", "_ZGVbN2v_sin", FIXED(2))
125 TLI_DEFINE_VECFUNC("sin", "_ZGVdN4v_sin", FIXED(4))
240 TLI_DEFINE_VECFUNC("sin", "__sind2", FIXED(2))
241 TLI_DEFINE_VECFUNC("llvm.sin.f64", "__sind2", FIXED(2))
243 TLI_DEFINE_VECFUNC("llvm.sin.f32", "__sinf4", FIXED(4))
277 TLI_DEFINE_VECFUNC("sin", "__svml_sin2", FIXED(2))
278 TLI_DEFINE_VECFUNC("sin", "__svml_sin4", FIXED(4))
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/AMDGPU/
H A Dtan.ll3 ; Check that sin/cos is not folded to tan on amdgcn.
6 ; GCN: call float @llvm.sin.f32
9 declare float @llvm.sin.f32(float) #0
14 %tmp32 = call float @llvm.sin.f32(float %arg)

12345678910>>...13