Home
last modified time | relevance | path

Searched refs:rsqrt (Results 1 – 25 of 118) sorted by relevance

12345

/llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/
H A Dsqrt-approx.ll17 ; CHECK: rsqrt.approx.f32
33 ; CHECK: rsqrt.approx.f64
42 ; CHECK: rsqrt.approx.f64
90 ; CHECK: rsqrt.approx.f64
106 ; CHECK: rsqrt.approx.f64
114 ; The sqrt and rsqrt refinement algorithms both emit an rsqrt.approx, followed
119 ; CHECK: rsqrt.approx.f32
134 ; CHECK: rsqrt.approx.f32
141 ; CHECK: rsqrt.approx.f64
156 ; CHECK: rsqrt.approx.f64
[all …]
H A Dfast-math.ll62 ; reciprocal(rsqrt(x)) for sqrt(x), and emit a vanilla divide.
74 ; CHECK: rsqrt.approx.f64
83 ; CHECK-LABEL: rsqrt(
84 ; CHECK-NOT: rsqrt.approx
86 ; CHECK-NOT: rsqrt.approx
87 define float @rsqrt(float %a) {
96 ; CHECK: rsqrt.approx.f32
108 ; CHECK: rsqrt.approx.ftz.f32
/llvm-project-15.0.7/mlir/test/mlir-cpu-runner/X86Vector/
H A Dmath-polynomial-approx-avx2.mlir14 // rsqrt.
17 func.func @rsqrt() {
18 // Sanity-check that the scalar rsqrt still works OK.
21 %rsqrt_0 = math.rsqrt %0 : f32
25 %rsqrt_two = math.rsqrt %two : f32
31 %rsqrt_vec8 = math.rsqrt %vec8 : vector<8xf32>
38 call @rsqrt(): () -> ()
/llvm-project-15.0.7/libclc/r600/lib/math/
H A Drsqrt.cl5 _CLC_OVERLOAD _CLC_DEF float rsqrt(float x)
10 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, rsqrt, float);
16 _CLC_OVERLOAD _CLC_DEF double rsqrt(double x)
21 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, rsqrt, double);
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Drsqrt.cl5 _CLC_OVERLOAD _CLC_DEF float rsqrt(float x)
10 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, rsqrt, float);
16 _CLC_OVERLOAD _CLC_DEF double rsqrt(double x)
21 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, rsqrt, double);
H A Dhalf_rsqrt.cl3 #define __CLC_FUNC rsqrt
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dfmul-sqrt.ll97 %rsqrt = fdiv fast double 1.0, %sqrt
98 %squared = fmul fast double %rsqrt, %rsqrt
111 %rsqrt = fdiv double 1.0, %sqrt
112 %res = fmul reassoc nsz double %rsqrt, %x
113 store double %rsqrt, double* %p
128 %rsqrt = fdiv fast <2 x float> <float 1.0, float 1.0>, %sqrt
129 %res = fmul fast <2 x float> %add, %rsqrt
130 store <2 x float> %rsqrt, <2 x float>* %p
219 %rsqrt = fdiv fast double 1.0, %sqrt
220 call void @use(double %rsqrt)
[all …]
/llvm-project-15.0.7/libclc/test/
H A Drsqrt.cl4 x[1] = rsqrt(x[0]);
5 y[1] = rsqrt(y[0]);
/llvm-project-15.0.7/libclc/generic/lib/geometric/
H A Dnormalize.cl46 return p * rsqrt(l2);
66 return p * rsqrt(l2);
86 return p * rsqrt(l2);
114 return p * rsqrt(l2);
134 return p * rsqrt(l2);
154 return p * rsqrt(l2);
/llvm-project-15.0.7/mlir/test/Dialect/Math/
H A Dpolynomial-approximation.mlir400 // CHECK: math.rsqrt
401 // AVX2: math.rsqrt
403 %0 = math.rsqrt %arg0 : f32
408 // CHECK: math.rsqrt
427 %0 = math.rsqrt %arg0 : vector<8xf32>
434 // CHECK: math.rsqrt
436 // AVX2: math.rsqrt
438 %0 = math.rsqrt %arg0 : vector<5xf32>
446 // CHECK: math.rsqrt
467 // CHECK: math.rsqrt
[all …]
H A Dops.mlir161 // CHECK-LABEL: func @rsqrt(
163 func.func @rsqrt(%f: f32, %v: vector<4xf32>, %t: tensor<4x4x?xf32>) {
164 // CHECK: %{{.*}} = math.rsqrt %[[F]] : f32
165 %0 = math.rsqrt %f : f32
166 // CHECK: %{{.*}} = math.rsqrt %[[V]] : vector<4xf32>
167 %1 = math.rsqrt %v : vector<4xf32>
168 // CHECK: %{{.*}} = math.rsqrt %[[T]] : tensor<4x4x?xf32>
169 %2 = math.rsqrt %t : tensor<4x4x?xf32>
H A Dalgebraic-simplification.mlir67 // CHECK: %[[SCALAR:.*]] = math.rsqrt %arg0
68 // CHECK: %[[VECTOR:.*]] = math.rsqrt %arg1
/llvm-project-15.0.7/mlir/test/Conversion/MathToLLVM/
H A Dmath-to-llvm.mlir55 // CHECK-LABEL: func @rsqrt(
57 func.func @rsqrt(%arg0 : f32) {
61 %0 = math.rsqrt %arg0 : f32
136 %0 = math.rsqrt %arg0 : f64
148 %0 = math.rsqrt %arg0 : vector<4xf32>
161 %0 = math.rsqrt %arg0 : vector<4x3xf32>
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dextractps.ll16 … call <4 x float> @llvm.x86.sse.rsqrt.ss( <4 x float> %2 ) ; <<4 x float>>:3 [#uses=1]
31 … call <4 x float> @llvm.x86.sse.rsqrt.ss( <4 x float> %2 ) ; <<4 x float>>:3 [#uses=1]
37 declare <4 x float> @llvm.x86.sse.rsqrt.ss(<4 x float>) nounwind readnone
/llvm-project-15.0.7/llvm/test/Transforms/Reassociate/
H A Dfactorize-again.ll9 ; CHECK-NEXT: [[TMP4:%.*]] = call float @llvm.rsqrt.f32(float undef)
22 %4 = call float @llvm.rsqrt.f32(float undef)
41 declare float @llvm.rsqrt.f32(float) #1
/llvm-project-15.0.7/mlir/test/Integration/Dialect/Vector/CPU/X86Vector/
H A Dtest-rsqrt.mlir10 %r = x86vector.avx.rsqrt %v : vector<8xf32>
11 …// `rsqrt` may produce slightly different results on Intel and AMD machines: accept both results h…
/llvm-project-15.0.7/mlir/test/Conversion/MathToSPIRV/
H A Dmath-to-opencl-spirv.mlir21 // CHECK: spv.CL.rsqrt %{{.*}}: f32
22 %5 = math.rsqrt %arg0 : f32
58 // CHECK: spv.CL.rsqrt %{{.*}}: vector<3xf32>
59 %5 = math.rsqrt %arg0 : vector<3xf32>
/llvm-project-15.0.7/mlir/test/Dialect/Complex/
H A Dops.mlir77 // CHECK: complex.rsqrt %[[C]] : complex<f32>
78 %rsqrt = complex.rsqrt %complex : complex<f32>
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Docl-ops.mlir23 // CHECK: {{%.*}} = spv.CL.rsqrt {{%.*}} : f32
24 %9 = spv.CL.rsqrt %arg0 : f32
/llvm-project-15.0.7/libclc/generic/include/clc/math/
H A Drsqrt.h2 #define __CLC_FUNCTION rsqrt
/llvm-project-15.0.7/libclc/amdgpu/lib/math/
H A Dhalf_rsqrt.cl3 #define __CLC_FUNC rsqrt
/llvm-project-15.0.7/mlir/test/Integration/Dialect/Complex/CPU/
H A Dcorrectness.mlir41 func.func @rsqrt(%arg: complex<f32>) -> complex<f32> {
42 %sqrt = complex.rsqrt %arg : complex<f32>
214 // complex.rsqrt test
241 %rsqrt_func = func.constant @rsqrt : (complex<f32>) -> complex<f32>
/llvm-project-15.0.7/libclc/r600/lib/
H A DSOURCES4 math/rsqrt.cl
/llvm-project-15.0.7/mlir/test/Dialect/X86Vector/
H A Droundtrip.mlir53 // CHECK: x86vector.avx.rsqrt {{.*}} : vector<8xf32>
54 %0 = x86vector.avx.rsqrt %a : vector<8xf32>
H A Dlegalize-for-llvm.mlir49 // CHECK: x86vector.avx.intr.rsqrt.ps.256
50 %0 = x86vector.avx.rsqrt %a : vector<8xf32>

12345