Home
last modified time | relevance | path

Searched refs:fabs (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/external/llvm/test/CodeGen/R600/
Dfabs.f64.ll5 declare double @fabs(double) readnone
6 declare double @llvm.fabs.f64(double) readnone
7 declare <2 x double> @llvm.fabs.v2f64(<2 x double>) readnone
8 declare <4 x double> @llvm.fabs.v4f64(<4 x double>) readnone
18 %fabs = call double @llvm.fabs.f64(double %val)
19 store double %fabs, double addrspace(1)* %out
28 %fabs = call double @llvm.fabs.f64(double %in)
29 store double %fabs, double addrspace(1)* %out
38 %fabs = call <2 x double> @llvm.fabs.v2f64(<2 x double> %in)
39 store <2 x double> %fabs, <2 x double> addrspace(1)* %out
[all …]
Dfabs.ll7 ; (fabs (f32 bitcast (i32 a))) => (f32 bitcast (and (i32 a), 0x7FFFFFFF))
18 %fabs = call float @fabs(float %bc)
19 store float %fabs, float addrspace(1)* %out
31 %fabs = call float @llvm.fabs.f32(float %bc)
32 store float %fabs, float addrspace(1)* %out
41 %fabs = call float @llvm.fabs.f32(float %in)
42 store float %fabs, float addrspace(1)* %out
53 %fabs = call <2 x float> @llvm.fabs.v2f32(<2 x float> %in)
54 store <2 x float> %fabs, <2 x float> addrspace(1)* %out
69 %fabs = call <4 x float> @llvm.fabs.v4f32(<4 x float> %in)
[all …]
Dfneg-fabs.f64.ll4 ; FIXME: Check something here. Currently it seems fabs + fneg aren't
10 %fabs = call double @llvm.fabs.f64(double %x)
11 %fsub = fsub double -0.000000e+00, %fabs
20 %fabs = call double @llvm.fabs.f64(double %x)
21 %fsub = fsub double -0.000000e+00, %fabs
30 %fabs = call double @llvm.fabs.f64(double %x)
31 %fsub = fsub double -0.000000e+00, %fabs
40 %fabs = call double @llvm.fabs.f64(double %bc)
41 %fsub = fsub double -0.000000e+00, %fabs
51 %fabs = call double @fabs(double %bc)
[all …]
Dfneg-fabs.ll9 %fabs = call float @llvm.fabs.f32(float %x)
10 %fsub = fsub float -0.000000e+00, %fabs
21 %fabs = call float @llvm.fabs.f32(float %x)
22 %fsub = fsub float -0.000000e+00, %fabs
29 ; (fabs (f32 bitcast (i32 a))) => (f32 bitcast (and (i32 a), 0x7FFFFFFF))
41 %fabs = call float @llvm.fabs.f32(float %bc)
42 %fsub = fsub float -0.000000e+00, %fabs
56 %fabs = call float @fabs(float %bc)
57 %fsub = fsub float -0.000000e+00, %fabs
66 %fabs = call float @llvm.fabs.f32(float %in)
[all …]
Dfp-classify.ll7 declare float @llvm.fabs.f32(float) #1
8 declare double @llvm.fabs.f64(double) #1
16 %fabs = tail call float @llvm.fabs.f32(float %x) #1
17 %cmp = fcmp oeq float %fabs, 0x7FF0000000000000
27 %fabs = tail call float @llvm.fabs.f32(float %x) #1
28 %cmp = fcmp ueq float %fabs, 0x7FF0000000000000
38 %fabs = tail call float @llvm.fabs.f32(float %x) #1
39 %cmp = fcmp oeq float %fabs, 0xFFF0000000000000
53 %x.fabs = tail call float @llvm.fabs.f32(float %x) #1
54 %ninf = fcmp une float %x.fabs, 0x7FF0000000000000
[all …]
Dcommute_modifiers.ll4 declare float @llvm.fabs.f32(float) #1
15 %x.fabs = call float @llvm.fabs.f32(float %x) #1
16 %z = fadd float 2.0, %x.fabs
29 %x.fabs = call float @llvm.fabs.f32(float %x) #1
30 %x.fneg.fabs = fsub float -0.000000e+00, %x.fabs
31 %z = fmul float 4.0, %x.fneg.fabs
60 %x.fabs = call float @llvm.fabs.f32(float %x) #1
61 %z = fadd float 1024.0, %x.fabs
77 %y.fabs = call float @llvm.fabs.f32(float %y) #1
78 %z = fadd float %x, %y.fabs
[all …]
Dllvm.AMDGPU.clamp.ll5 declare float @llvm.fabs.f32(float) nounwind readnone
28 %src.fabs = call float @llvm.fabs.f32(float %src) nounwind readnone
29 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fabs, float 0.0, float 1.0) nounwind readnone
52 %src.fabs = call float @llvm.fabs.f32(float %src) nounwind readnone
53 %src.fneg.fabs = fsub float -0.0, %src.fabs
54 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fneg.fabs, float 0.0, float 1.0) nounwind re…
Dcvt_rpi_i32_f32.ll5 declare float @llvm.fabs.f32(float) #1
25 %x.fabs = call float @llvm.fabs.f32(float %x) #1
26 %fadd = fadd float %x.fabs, 0.5
59 %x.fabs = call float @llvm.fabs.f32(float %x) #1
60 %x.fabs.fneg = fsub float -0.000000e+00, %x.fabs
61 %fadd = fadd float %x.fabs.fneg, 0.5
Dcvt_flr_i32_f32.ll5 declare float @llvm.fabs.f32(float) #1
39 %x.fabs = call float @llvm.fabs.f32(float %x) #1
40 %floor = call float @llvm.floor.f32(float %x.fabs) #1
65 %x.fabs = call float @llvm.fabs.f32(float %x) #1
66 %x.fabs.fneg = fsub float -0.000000e+00, %x.fabs
67 %floor = call float @llvm.floor.f32(float %x.fabs.fneg) #1
/external/llvm/test/CodeGen/X86/
Dfnabs.ll12 %fabs = tail call float @fabsf(float %a) #1
13 %fsub = fsub float -0.0, %fabs
23 %fabs = tail call float @fabsf(float %a) #1
24 %fsub = fsub float -0.0, %fabs
25 %fmul = fmul float %fsub, %fabs
33 %fabs = tail call <4 x float> @llvm.fabs.v4f32(< 4 x float> %a) #1
34 %fsub = fsub <4 x float> <float -0.0, float -0.0, float -0.0, float -0.0>, %fabs
44 %fabs = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %a) #1
45 %fsub = fsub <4 x float> <float -0.0, float -0.0, float -0.0, float -0.0>, %fabs
46 %fmul = fmul <4 x float> %fsub, %fabs
[all …]
Dfabs.ll1 ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
17 ; CHECK: {{^[ \t]+fabs$}}
18 ; UNSAFE: {{^[ \t]+fabs$}}
20 ; CHECK-NOT: fabs
21 ; UNSAFE-NOT: fabs
33 ; fabs is not used here.
34 ; CHECK-NOT: fabs
35 ; NOOPT-NOT: fabs
37 ; UNSAFE: {{^[ \t]+fabs$}}
39 ; UNSAFE-NOT: fabs
[all …]
Dvec_fabs.ll8 %t = call <2 x double> @llvm.fabs.v2f64(<2 x double> %p)
11 declare <2 x double> @llvm.fabs.v2f64(<2 x double> %p)
17 %t = call <4 x float> @llvm.fabs.v4f32(<4 x float> %p)
20 declare <4 x float> @llvm.fabs.v4f32(<4 x float> %p)
26 %t = call <4 x double> @llvm.fabs.v4f64(<4 x double> %p)
29 declare <4 x double> @llvm.fabs.v4f64(<4 x double> %p)
35 %t = call <8 x float> @llvm.fabs.v8f32(<8 x float> %p)
38 declare <8 x float> @llvm.fabs.v8f32(<8 x float> %p)
40 ; PR20354: when generating code for a vector fabs op,
42 ; No constant pool loads or vector ops are needed for the fabs of a
[all …]
/external/llvm/test/Transforms/InstCombine/
Dfabs.ll6 declare double @fabs(double)
21 %fabs = tail call double @fabs(double %mul)
22 ret double %fabs
41 declare float @llvm.fabs.f32(float)
42 declare double @llvm.fabs.f64(double)
43 declare fp128 @llvm.fabs.f128(fp128)
47 %fabsf = tail call float @llvm.fabs.f32(float %mul)
57 %fabs = tail call double @llvm.fabs.f64(double %mul)
58 ret double %fabs
67 %fabsl = tail call fp128 @llvm.fabs.f128(fp128 %mul)
[all …]
Dfcmp.ll3 declare double @llvm.fabs.f64(double) nounwind readnone
74 declare double @fabs(double) nounwind readnone
77 %call = tail call double @fabs(double %a) nounwind
82 ; CHECK-NOT: fabs
87 %call = tail call double @llvm.fabs.f64(double %a) nounwind
92 ; CHECK-NOT: fabs
97 %call = tail call double @fabs(double %a) nounwind
102 ; CHECK-NOT: fabs
107 %call = tail call double @llvm.fabs.f64(double %a) nounwind
112 ; CHECK-NOT: fabs
[all …]
/external/llvm/test/CodeGen/ARM/
Dfabs-neon.ll6 %foo = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
9 declare <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
14 %foo = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a)
17 declare <2 x float> @llvm.fabs.v2f32(<2 x float> %a)
19 ; No constant pool loads or vector ops are needed for the fabs of a
42 %fabs = call <2 x float> @llvm.fabs.v2f32(<2 x float> %bitcast)
43 %ret = bitcast <2 x float> %fabs to i64
53 %fabs = call <2 x float> @llvm.fabs.v2f32(<2 x float> %bitcast)
54 %ret = bitcast <2 x float> %fabs to i64
/external/skia/src/pathops/
DSkPathOpsTypes.h220 return fabs(x) < FLT_EPSILON; in approximately_zero()
224 return fabs(x) < DBL_EPSILON_ERR; in precisely_zero()
228 return fabs(x) < DBL_EPSILON_SUBDIVIDE_ERR; in precisely_subdivide_zero()
232 return fabs(x) < FLT_EPSILON; in approximately_zero()
236 return fabs(x) < FLT_EPSILON_CUBED; in approximately_zero_cubed()
240 return fabs(x) < FLT_EPSILON_HALF; in approximately_zero_half()
244 return fabs(x) < FLT_EPSILON_DOUBLE; in approximately_zero_double()
248 return fabs(x) < FLT_EPSILON_ORDERABLE_ERR; in approximately_zero_orderable()
252 return fabs(x) < FLT_EPSILON_SQUARED; in approximately_zero_squared()
256 return fabs(x) < FLT_EPSILON_SQRT; in approximately_zero_sqrt()
[all …]
/external/clang/test/Headers/
Dtgmath.c26 _Static_assert(sizeof(fabs(f)) == sizeof(f), "");
27 _Static_assert(sizeof(fabs(d)) == sizeof(d), "");
28 _Static_assert(sizeof(fabs(l)) == sizeof(l), "");
30 _Static_assert(sizeof(fabs(fc)) == sizeof(f), "");
31 _Static_assert(sizeof(fabs(dc)) == sizeof(d), "");
32 _Static_assert(sizeof(fabs(lc)) == sizeof(l), "");
/external/llvm/test/CodeGen/AArch64/
Dfast-isel-intrinsic.ll6 ; CHECK: fabs s0, s0
7 %1 = call float @llvm.fabs.f32(float %a)
13 ; CHECK: fabs d0, d0
14 %1 = call double @llvm.fabs.f64(double %a)
18 declare double @llvm.fabs.f64(double)
19 declare float @llvm.fabs.f32(float)
/external/clang/test/Sema/
Dwarn-absolute-value.c9 double fabs(double);
25 (void)fabs(x); in test_int()
87 (void)fabs(x); in test_long()
156 (void)fabs(x); in test_long_long()
230 (void)fabs(x); in test_float()
295 (void)fabs(x); in test_double()
363 (void)fabs(x); in test_long_double()
437 (void)fabs(x); in test_complex_float()
499 (void)fabs(x); in test_complex_double()
567 (void)fabs(x); in test_complex_long_double()
[all …]
/external/libopus/celt/tests/
Dtest_unit_mathops.c72 if (fabs(prod-1) > .00025) in testdiv()
89 if (fabs(ratio - 1) > .0005 && fabs(val-sqrt(i)) > 2) in testsqrt()
157 float error = fabs((1.442695040888963387*log(x))-celt_log2(x)); in testlog2()
171 float error = fabs(x-(1.442695040888963387*log(celt_exp2(x)))); in testexp2()
185 float error = fabs(x-(celt_log2(celt_exp2(x)))); in testexp2log2()
199 float error = fabs((1.442695040888963387*log(x/16384.0))-celt_log2(x)/1024.0); in testlog2()
213 float error1 = fabs(x/1024.0-(1.442695040888963387*log(celt_exp2(x)/65536.0))); in testexp2()
214 float error2 = fabs(exp(0.6931471805599453094*x/1024.0)-celt_exp2(x)/65536.0); in testexp2()
228 float error = fabs(x-0.25*celt_exp2(celt_log2(x)))/16384; in testexp2log2()
/external/clang/test/SemaCXX/
Dwarn-absolute-value.cpp10 double fabs(double);
46 (void)fabs(x); in test_int()
110 (void)fabs(x); in test_long()
181 (void)fabs(x); in test_long_long()
257 (void)fabs(x); in test_float()
324 (void)fabs(x); in test_double()
394 (void)fabs(x); in test_long_double()
468 (void)fabs(x); in test_complex_float()
530 (void)fabs(x); in test_complex_double()
598 (void)fabs(x); in test_complex_long_double()
[all …]
/external/opencv/cv/src/
Dcvmatchcontours.cpp111 double ama = fabs( ma[i] ); in cvMatchShapes()
112 double amb = fabs( mb[i] ); in cvMatchShapes()
131 result += fabs( -ama + amb ); in cvMatchShapes()
141 double ama = fabs( ma[i] ); in cvMatchShapes()
142 double amb = fabs( mb[i] ); in cvMatchShapes()
161 result += fabs( -ama + amb ); in cvMatchShapes()
171 double ama = fabs( ma[i] ); in cvMatchShapes()
172 double amb = fabs( mb[i] ); in cvMatchShapes()
191 mmm = fabs( (ama - amb) / ama ); in cvMatchShapes()
343 t0 = fabs( r11 * w1 + r21 * w2 ); in cvMatchContourTrees()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dfp-abs-01.ll6 declare float @llvm.fabs.f32(float %f)
11 %res = call float @llvm.fabs.f32(float %f)
16 declare double @llvm.fabs.f64(double %f)
21 %res = call double @llvm.fabs.f64(double %f)
28 declare fp128 @llvm.fabs.f128(fp128 %f)
35 %abs = call fp128 @llvm.fabs.f128(fp128 %orig)
Dfp-abs-02.ll6 declare float @llvm.fabs.f32(float %f)
11 %abs = call float @llvm.fabs.f32(float %f)
17 declare double @llvm.fabs.f64(double %f)
22 %abs = call double @llvm.fabs.f64(double %f)
30 declare fp128 @llvm.fabs.f128(fp128 %f)
37 %abs = call fp128 @llvm.fabs.f128(fp128 %orig)
/external/lldb/test/python_api/sbdata/
DTestSBData.py8 from math import fabs
93 self.assertTrue( fabs(data.GetFloat(error, offset) - 3.14) < 1, 'foo[0].c == 3.14')
152 …self.assertTrue(fabs(data.float[2] - 3.14) < 1, 'foo[1].c == 3.14') # exploiting that sizeof(uint3…
161 self.assertTrue(fabs(data.GetFloat(error, offset) - 3.14) < 1, 'foo[1].c == 3.14')
174 self.assertTrue(fabs(data.GetFloat(error, offset) - 6.28) < 1, 'foo[1].c == 6.28')
194 self.assertTrue(fabs(data.GetFloat(error, offset) - 3) < 1, 'barfoo[0].c == 3')
201 self.assertTrue(fabs(data.GetFloat(error, offset) - 6) < 1, 'barfoo[1].c == 6')
276 self.assertTrue( fabs(data2.GetDouble(error,0) - 3.14) < 0.5, 'double data2[0] = 3.14')
278 self.assertTrue( fabs(data2.GetDouble(error,8) - 6.28) < 0.5, 'double data2[1] = 6.28')
280 self.assertTrue( fabs(data2.GetDouble(error,16) - 2.71) < 0.5, 'double data2[2] = 2.71')
[all …]

12345678910>>...19