Home
last modified time | relevance | path

Searched refs:copysign (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/external/python/cpython3/Lib/test/decimaltestdata/
Dcopysign.decTest2 -- copysign.decTest -- quiet copy with sign from rhs --
29 cpsx001 copysign +7.50 11 -> 7.50
30 cpsx002 copysign '1.50' '7.33' -> 1.50
31 cpsx003 copysign '-1.50' '7.33' -> 1.50
32 cpsx004 copysign '1.50' '-7.33' -> -1.50
33 cpsx005 copysign '-1.50' '-7.33' -> -1.50
36 cpsx011 copysign Infinity 11 -> Infinity
37 cpsx012 copysign -Infinity 11 -> Infinity
40 cpsx021 copysign NaN 11 -> NaN
41 cpsx022 copysign -NaN 11 -> NaN
[all …]
DdqCopySign.decTest31 dqcps001 copysign +7.50 11 -> 7.50
34 dqcps011 copysign Infinity 11 -> Infinity
35 dqcps012 copysign -Infinity 11 -> Infinity
38 dqcps021 copysign NaN 11 -> NaN
39 dqcps022 copysign -NaN 11 -> NaN
40 dqcps023 copysign sNaN 11 -> sNaN
41 dqcps024 copysign -sNaN 11 -> sNaN
44 dqcps031 copysign NaN10 11 -> NaN10
45 dqcps032 copysign -NaN10 11 -> NaN10
46 dqcps033 copysign sNaN10 11 -> sNaN10
[all …]
DddCopySign.decTest31 ddcps001 copysign +7.50 11 -> 7.50
34 ddcps011 copysign Infinity 11 -> Infinity
35 ddcps012 copysign -Infinity 11 -> Infinity
38 ddcps021 copysign NaN 11 -> NaN
39 ddcps022 copysign -NaN 11 -> NaN
40 ddcps023 copysign sNaN 11 -> sNaN
41 ddcps024 copysign -sNaN 11 -> sNaN
44 ddcps031 copysign NaN10 11 -> NaN10
45 ddcps032 copysign -NaN10 11 -> NaN10
46 ddcps033 copysign sNaN10 11 -> sNaN10
[all …]
/external/python/cpython2/Lib/test/decimaltestdata/
Dcopysign.decTest2 -- copysign.decTest -- quiet copy with sign from rhs --
29 cpsx001 copysign +7.50 11 -> 7.50
30 cpsx002 copysign '1.50' '7.33' -> 1.50
31 cpsx003 copysign '-1.50' '7.33' -> 1.50
32 cpsx004 copysign '1.50' '-7.33' -> -1.50
33 cpsx005 copysign '-1.50' '-7.33' -> -1.50
36 cpsx011 copysign Infinity 11 -> Infinity
37 cpsx012 copysign -Infinity 11 -> Infinity
40 cpsx021 copysign NaN 11 -> NaN
41 cpsx022 copysign -NaN 11 -> NaN
[all …]
DddCopySign.decTest31 ddcps001 copysign +7.50 11 -> 7.50
34 ddcps011 copysign Infinity 11 -> Infinity
35 ddcps012 copysign -Infinity 11 -> Infinity
38 ddcps021 copysign NaN 11 -> NaN
39 ddcps022 copysign -NaN 11 -> NaN
40 ddcps023 copysign sNaN 11 -> sNaN
41 ddcps024 copysign -sNaN 11 -> sNaN
44 ddcps031 copysign NaN10 11 -> NaN10
45 ddcps032 copysign -NaN10 11 -> NaN10
46 ddcps033 copysign sNaN10 11 -> sNaN10
[all …]
DdqCopySign.decTest31 dqcps001 copysign +7.50 11 -> 7.50
34 dqcps011 copysign Infinity 11 -> Infinity
35 dqcps012 copysign -Infinity 11 -> Infinity
38 dqcps021 copysign NaN 11 -> NaN
39 dqcps022 copysign -NaN 11 -> NaN
40 dqcps023 copysign sNaN 11 -> sNaN
41 dqcps024 copysign -sNaN 11 -> sNaN
44 dqcps031 copysign NaN10 11 -> NaN10
45 dqcps032 copysign -NaN10 11 -> NaN10
46 dqcps033 copysign sNaN10 11 -> sNaN10
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dcopysign.ll5 declare float @llvm.copysign.f32(float, float)
7 declare <3 x double> @llvm.copysign.v3f64(<3 x double>, <3 x double>)
14 %r = call arcp float @llvm.copysign.f32(float %x, float 0.0)
23 …%r = call ninf <3 x double> @llvm.copysign.v3f64(<3 x double> %x, <3 x double> <double 42.0, doubl…
33 %r = call nnan float @llvm.copysign.f32(float %x, float -0.0)
43 …%r = call fast <3 x double> @llvm.copysign.v3f64(<3 x double> %x, <3 x double> <double -42.0, doub…
53 %r = call ninf float @llvm.copysign.f32(float %x, float %fabs)
63 %r = call arcp <3 x double> @llvm.copysign.v3f64(<3 x double> %x, <3 x double> %yf)
72 ; CHECK-NEXT: [[R:%.*]] = call ninf float @llvm.copysign.f32(float [[Y:%.*]], float [[MAX]])
76 %r = call ninf float @llvm.copysign.f32(float %y, float %max)
[all …]
/external/llvm-project/libc/test/src/math/
Dcopysign_test.cpp20 EXPECT_FP_EQ(nan, __llvm_libc::copysign(nan, -1.0)); in TEST()
21 EXPECT_FP_EQ(nan, __llvm_libc::copysign(nan, 1.0)); in TEST()
23 EXPECT_FP_EQ(negInf, __llvm_libc::copysign(inf, -1.0)); in TEST()
24 EXPECT_FP_EQ(inf, __llvm_libc::copysign(negInf, 1.0)); in TEST()
26 EXPECT_FP_EQ(negZero, __llvm_libc::copysign(zero, -1.0)); in TEST()
27 EXPECT_FP_EQ(zero, __llvm_libc::copysign(negZero, 1.0)); in TEST()
39 double res1 = __llvm_libc::copysign(x, -x); in TEST()
42 double res2 = __llvm_libc::copysign(x, x); in TEST()
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/
Dcopysign.ll4 declare float @llvm.copysign.f32(float, float)
5 declare double @llvm.copysign.f64(double, double)
11 %x = call float @llvm.copysign.f32(float 1.0, float -2.0)
19 %x = call float @llvm.copysign.f32(float -2.0, float 1.0)
27 %x = call float @llvm.copysign.f32(float -2.0, float -1.0)
35 %x = call double @llvm.copysign.f64(double 1.0, double -2.0)
43 %x = call double @llvm.copysign.f64(double -1.0, double 2.0)
51 %x = call double @llvm.copysign.f64(double -1.0, double -2.0)
/external/llvm/test/Transforms/InstCombine/
Dcopysign.ll3 declare float @llvm.copysign.f32(float, float) #0
4 declare double @llvm.copysign.f64(double, double) #0
9 %x = call float @llvm.copysign.f32(float 1.0, float -2.0) #0
16 %x = call float @llvm.copysign.f32(float -2.0, float 1.0) #0
23 %x = call float @llvm.copysign.f32(float -2.0, float -1.0) #0
30 %x = call double @llvm.copysign.f64(double 1.0, double -2.0) #0
37 %x = call double @llvm.copysign.f64(double -1.0, double 2.0) #0
44 %x = call double @llvm.copysign.f64(double -1.0, double -2.0) #0
/external/llvm-project/llvm/test/CodeGen/X86/
Dvec-copysign-avx512.ll10 %tmp = tail call <4 x float> @llvm.copysign.v4f32( <4 x float> %a, <4 x float> %b )
19 %tmp = tail call <8 x float> @llvm.copysign.v8f32( <8 x float> %a, <8 x float> %b )
28 %tmp = tail call <16 x float> @llvm.copysign.v16f32( <16 x float> %a, <16 x float> %b )
37 %tmp = tail call <2 x double> @llvm.copysign.v2f64( <2 x double> %a, <2 x double> %b )
46 %tmp = tail call <4 x double> @llvm.copysign.v4f64( <4 x double> %a, <4 x double> %b )
55 %tmp = tail call <8 x double> @llvm.copysign.v8f64( <8 x double> %a, <8 x double> %b )
59 declare <4 x float> @llvm.copysign.v4f32(<4 x float> %Mag, <4 x float> %Sgn)
60 declare <8 x float> @llvm.copysign.v8f32(<8 x float> %Mag, <8 x float> %Sgn)
61 declare <16 x float> @llvm.copysign.v16f32(<16 x float> %Mag, <16 x float> %Sgn)
62 declare <2 x double> @llvm.copysign.v2f64(<2 x double> %Mag, <2 x double> %Sgn)
[all …]
Dcombine-fcopysign.ll10 ; copysign(x, c1) -> fabs(x) iff ispos(c1)
22 …%1 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> <float 2.0, float 2.0, floa…
37 …%1 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> <float 0.0, float 2.0, floa…
53 %2 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> %1)
57 ; copysign(x, c1) -> fneg(fabs(x)) iff isneg(c1)
69 …%1 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> <float -2.0, float -2.0, fl…
84 …%1 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> <float -0.0, float -2.0, fl…
101 %3 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %x, <4 x float> %2)
105 ; copysign(fabs(x), y) -> copysign(x, y)
123 %2 = call <4 x float> @llvm.copysign.v4f32(<4 x float> %1, <4 x float> %y)
[all …]
Dsse-fcopysign.ll41 ; X32-NEXT: calll copysign
49 ; X64-NEXT: jmp copysign # TAILCALL
52 %tmp = tail call double @copysign( double %a, double %tmp2 )
57 declare dso_local double @copysign(double, double)
83 %tmp = tail call float @llvm.copysign.f32( float %b, float %a )
117 %tmp = tail call double @llvm.copysign.f64( double %a, double %tmp2 )
132 %tmp = tail call float @llvm.copysign.f32( float 1.0, float -2.0 )
149 %tmp = tail call double @llvm.copysign.f64( double 0.0, double %tmp2 )
153 declare dso_local float @llvm.copysign.f32(float %Mag, float %Sgn)
154 declare dso_local double @llvm.copysign.f64(double %Mag, double %Sgn)
/external/llvm-project/llvm/test/CodeGen/VE/Scalar/
Dfcopysign.ll3 ;;; Test ‘llvm.copysign.*’ Intrinsic
6 ;;; This is an overloaded intrinsic. You can use llvm.copysign on any
10 ;;; declare float @llvm.copysign.f32(float %Mag, float %Sgn)
11 ;;; declare double @llvm.copysign.f64(double %Mag, double %Sgn)
12 ;;; declare x86_fp80 @llvm.copysign.f80(x86_fp80 %Mag, x86_fp80 %Sgn)
13 ;;; declare fp128 @llvm.copysign.f128(fp128 %Mag, fp128 %Sgn)
14 ;;; declare ppc_fp128 @llvm.copysign.ppcf128(ppc_fp128 %Mag, ppc_fp128 %Sgn)
17 ;;; The ‘llvm.copysign.*’ intrinsics return a value with the magnitude of
25 ;;; This function returns the same values as the libm copysign functions
44 %3 = tail call fast float @llvm.copysign.f32(float %0, float %1)
[all …]
/external/llvm-project/clang/lib/Headers/openmp_wrappers/
Dcomplex_cmath.h77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
128 : copysign(_Tp(0), __x.imag())); in sqrt()
130 copysign(__x.real(), __x.imag())); in sqrt()
181 copysign(__pi * _Tp(0.25), __x.imag())); in asinh()
182 return std::complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag())); in asinh()
192 return std::complex<_Tp>(copysign(__x.imag(), __x.real()), in asinh()
193 copysign(__pi / _Tp(2), __x.imag())); in asinh()
195 return std::complex<_Tp>(copysign(__z.real(), __x.real()), in asinh()
196 copysign(__z.imag(), __x.imag())); in asinh()
210 copysign(__pi * _Tp(0.25), __x.imag())); in acosh()
[all …]
/external/llvm-project/llvm/test/CodeGen/AArch64/
Dvector-fcopysign.ll13 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b)
25 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %tmp0)
29 declare <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b) #0
42 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %tmp0)
52 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b)
56 declare <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b) #0
65 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b)
76 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %tmp0)
80 declare <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b) #0
89 %r = call <4 x float> @llvm.copysign.v4f32(<4 x float> %a, <4 x float> %b)
[all …]
/external/llvm/test/CodeGen/AArch64/
Dvector-fcopysign.ll13 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b)
25 %r = call <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %tmp0)
29 declare <1 x float> @llvm.copysign.v1f32(<1 x float> %a, <1 x float> %b) #0
42 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %tmp0)
52 %r = call <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b)
56 declare <1 x double> @llvm.copysign.v1f64(<1 x double> %a, <1 x double> %b) #0
65 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b)
76 %r = call <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %tmp0)
80 declare <2 x float> @llvm.copysign.v2f32(<2 x float> %a, <2 x float> %b) #0
89 %r = call <4 x float> @llvm.copysign.v4f32(<4 x float> %a, <4 x float> %b)
[all …]
/external/llvm-project/llvm/test/Transforms/SLPVectorizer/X86/
Dfcopysign.ll20 declare float @llvm.copysign.f32(float, float)
21 declare double @llvm.copysign.f64(double, double)
31 ; CHECK-NEXT: [[TMP3:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[TMP1]], <2 x …
39 %fcopysign0 = call double @llvm.copysign.f64(double %a0, double %b0)
40 %fcopysign1 = call double @llvm.copysign.f64(double %a1, double %b1)
52 ; SSE-NEXT: [[TMP5:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[TMP1]], <2 x do…
53 ; SSE-NEXT: [[TMP6:%.*]] = call <2 x double> @llvm.copysign.v2f64(<2 x double> [[TMP2]], <2 x do…
61 ; AVX-NEXT: [[TMP3:%.*]] = call <4 x double> @llvm.copysign.v4f64(<4 x double> [[TMP1]], <4 x do…
73 %fcopysign0 = call double @llvm.copysign.f64(double %a0, double %b0)
74 %fcopysign1 = call double @llvm.copysign.f64(double %a1, double %b1)
[all …]
/external/llvm/test/CodeGen/WebAssembly/
Dcopysign-casts.ll3 ; DAGCombiner oddly folds casts into the rhs of copysign. Test that they get
9 declare double @copysign(double, double) nounwind readnone
14 ; CHECK: f64.copysign $push1=, $0, $pop0{{$}}
17 %t = call double @copysign(double %a, double %c)
23 ; CHECK: f32.copysign $push1=, $0, $pop0{{$}}
/external/llvm-project/llvm/test/CodeGen/WebAssembly/
Dcopysign-casts.ll3 ; DAGCombiner oddly folds casts into the rhs of copysign. Test that they get
9 declare double @copysign(double, double) nounwind readnone
14 ; CHECK: f64.copysign $push1=, $pop{{[0-9]+}}, $pop0{{$}}
17 %t = call double @copysign(double %a, double %c)
23 ; CHECK: f32.copysign $push1=, $pop{{[0-9]+}}, $pop0{{$}}
/external/llvm-project/libclc/generic/lib/math/
Dcopysign.cl4 _CLC_DEFINE_BINARY_BUILTIN(float, copysign, __builtin_copysignf, float, float)
10 _CLC_DEFINE_BINARY_BUILTIN(double, copysign, __builtin_copysign, double, double)
18 _CLC_DEF _CLC_OVERLOAD half copysign(half x, half y)
25 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, half, copysign, half, half)
/external/llvm/test/CodeGen/X86/
Dsse-fcopysign.ll35 ; X32-NEXT: calll copysign
42 ; X64-NEXT: jmp copysign
45 %tmp = tail call double @copysign( double %a, double %tmp2 )
50 declare double @copysign(double, double)
73 %tmp = tail call float @llvm.copysign.f32( float %b, float %a )
101 %tmp = tail call double @llvm.copysign.f64( double %a, double %tmp2 )
114 %tmp = tail call float @llvm.copysign.f32( float 1.0, float -2.0 )
129 %tmp = tail call double @llvm.copysign.f64( double 0.0, double %tmp2 )
133 declare float @llvm.copysign.f32(float %Mag, float %Sgn)
134 declare double @llvm.copysign.f64(double %Mag, double %Sgn)
/external/llvm/test/CodeGen/AMDGPU/
Dfcopysign.f64.ll4 declare double @llvm.copysign.f64(double, double) nounwind readnone
5 declare <2 x double> @llvm.copysign.v2f64(<2 x double>, <2 x double>) nounwind readnone
6 declare <4 x double> @llvm.copysign.v4f64(<4 x double>, <4 x double>) nounwind readnone
21 %result = call double @llvm.copysign.f64(double %mag, double %sign)
29 %result = call <2 x double> @llvm.copysign.v2f64(<2 x double> %mag, <2 x double> %sign)
37 %result = call <4 x double> @llvm.copysign.v4f64(<4 x double> %mag, <4 x double> %sign)
Dfcopysign.f32.ll6 declare float @llvm.copysign.f32(float, float) nounwind readnone
7 declare <2 x float> @llvm.copysign.v2f32(<2 x float>, <2 x float>) nounwind readnone
8 declare <4 x float> @llvm.copysign.v4f32(<4 x float>, <4 x float>) nounwind readnone
25 %result = call float @llvm.copysign.f32(float %mag, float %sign)
36 %result = call <2 x float> @llvm.copysign.v2f32(<2 x float> %mag, <2 x float> %sign)
49 %result = call <4 x float> @llvm.copysign.v4f32(<4 x float> %mag, <4 x float> %sign)
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dfcopysign.f32.ll5 declare float @llvm.copysign.f32(float, float) nounwind readnone
6 declare <2 x float> @llvm.copysign.v2f32(<2 x float>, <2 x float>) nounwind readnone
7 declare <4 x float> @llvm.copysign.v4f32(<4 x float>, <4 x float>) nounwind readnone
23 %result = call float @llvm.copysign.f32(float %mag, float %sign)
34 %result = call <2 x float> @llvm.copysign.v2f32(<2 x float> %mag, <2 x float> %sign)
47 %result = call <4 x float> @llvm.copysign.v4f32(<4 x float> %mag, <4 x float> %sign)

12345678910>>...16