Home
last modified time | relevance | path

Searched refs:rcp (Results 1 – 25 of 68) sorted by relevance

123

/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.rcp.ll12 %rcp = call float @llvm.amdgcn.rcp.f32(float undef)
21 %rcp = call float @llvm.amdgcn.rcp.f32(float 2.0)
30 %rcp = call float @llvm.amdgcn.rcp.f32(float 10.0)
58 %rcp = fdiv float 1.0, %src
67 %rcp = call float @llvm.amdgcn.rcp.f32(float %sqrt)
76 %rcp = call float @llvm.amdgcn.rcp.f32(float %sqrt)
86 %rcp = call double @llvm.amdgcn.rcp.f64(double %src)
96 %rcp = call double @llvm.amdgcn.rcp.f64(double %src)
104 %rcp = fdiv double 1.0, %src
129 %rcp = call double @llvm.amdgcn.rcp.f64(double %sqrt)
[all …]
H A Dllvm.amdgcn.rcp.legacy.ll6 declare float @llvm.amdgcn.rcp.legacy(float) #0
11 %rcp = call float @llvm.amdgcn.rcp.legacy(float %src) #0
12 store float %rcp, float addrspace(1)* %out, align 4
20 %rcp = call float @llvm.amdgcn.rcp.legacy(float 4.0) #0
21 store float %rcp, float addrspace(1)* %out, align 4
28 %rcp = call float @llvm.amdgcn.rcp.legacy(float 100.0) #0
29 store float %rcp, float addrspace(1)* %out, align 4
36 %rcp = call float @llvm.amdgcn.rcp.legacy(float undef)
37 store float %rcp, float addrspace(1)* %out, align 4
H A Drcp-pattern.ll13 %rcp = fdiv float 1.0, %src, !fpmath !0
14 store float %rcp, float addrspace(1)* %out, align 4
25 %rcp = fdiv float 1.0, %src, !fpmath !0
37 %rcp = fdiv fast float 1.0, %src, !fpmath !0
49 %rcp = fdiv arcp float 1.0, %src, !fpmath !0
61 %rcp = fdiv float 1.0, %src, !fpmath !0
74 %rcp = fdiv float 1.0, %src.fabs, !fpmath !0
86 %rcp = fdiv float -1.0, %src, !fpmath !0
125 %rcp = fdiv arcp float %x, 2.0
136 %rcp = fdiv arcp float %x, 10.0
[all …]
H A Damdgpu-codegenprepare-fdiv.ll19 ; CHECK: %[[FAST_RCP:[0-9]+]] = call fast float @llvm.amdgcn.rcp.f32(float %b)
21 ; CHECK: %[[AFN_RCP:[0-9]+]] = call afn float @llvm.amdgcn.rcp.f32(float %b)
50 ; CHECK: %md.25ulp = call float @llvm.amdgcn.rcp.f32(float %x)
52 ; CHECK: %afn.no.md = call afn float @llvm.amdgcn.rcp.f32(float %x)
53 ; CHECK: %afn.25ulp = call afn float @llvm.amdgcn.rcp.f32(float %x)
54 ; CHECK: %fast.no.md = call fast float @llvm.amdgcn.rcp.f32(float %x)
55 ; CHECK: %fast.25ulp = call fast float @llvm.amdgcn.rcp.f32(float %x)
272 ; CHECK: %[[AFN_RCP0:[0-9]+]] = call afn float @llvm.amdgcn.rcp.f32(float %[[AFN_B0]])
277 ; CHECK: %[[AFN_RCP1:[0-9]+]] = call afn float @llvm.amdgcn.rcp.f32(float %[[AFN_B1]])
311 ; CHECK: %[[RCP_FAST:[0-9]+]] = call fast float @llvm.amdgcn.rcp.f32(float %b)
[all …]
H A Ddpp64_combine.ll32 %rcp = call double @llvm.amdgcn.rcp.f64(double %tmp1)
33 %tmp2 = bitcast double %rcp to i64
47 %rcp = fdiv fast double 1.0, %tmp1
48 %tmp2 = bitcast double %rcp to i64
66 %rcp = fdiv double 15.0, %tmp1
67 %tmp2 = bitcast double %rcp to i64
75 declare double @llvm.amdgcn.rcp.f64(double)
H A Dfneg-combines.si.ll18 %rcp = call float @llvm.amdgcn.rcp.legacy(float %a)
19 %fneg = fsub float -0.000000e+00, %rcp
25 declare float @llvm.amdgcn.rcp.legacy(float) #1
H A Dselect-fabs-fneg-extract-legacy.ll18 %rcp = call float @llvm.amdgcn.rcp.legacy(float %x)
19 %fneg = fsub float -0.0, %rcp
42 declare float @llvm.amdgcn.rcp.legacy(float) #1
H A Dllvm.amdgcn.rcp.f16.ll3 declare half @llvm.amdgcn.rcp.f16(half %a)
15 %r.val = call half @llvm.amdgcn.rcp.f16(half %a.val)
H A Dfdiv.f64.ll132 %rcp = fdiv fast double %x, 2.0
133 store double %rcp, double addrspace(1)* %out, align 4
144 %rcp = fdiv fast double %x, 10.0
145 store double %rcp, double addrspace(1)* %out, align 4
156 %rcp = fdiv fast double %x, -10.0
157 store double %rcp, double addrspace(1)* %out, align 4
H A Drsq.ll41 ; Recognize that this is rsqrt(a) * rcp(b) * c,
42 ; not 1 / ( 1 / sqrt(a)) * rcp(b) * c.
44 ; NOTE: c * rcp( sqrt(a) * b ) is generated when we move rcp generation to AMGGPUCogenPrepare.
H A Dfdiv.f16.ll237 %rcp = fdiv afn half %x, 2.0
238 store half %rcp, half addrspace(1)* %out, align 4
249 %rcp = fdiv afn half %x, 10.0
250 store half %rcp, half addrspace(1)* %out, align 4
261 %rcp = fdiv afn half %x, -10.0
262 store half %rcp, half addrspace(1)* %out, align 4
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/
H A Dinst-select-amdgcn.rcp.s16.mir5 …own>:0:0: cannot select: %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %1:sgpr(s16) (in …
6 …own>:0:0: cannot select: %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %1:vgpr(s16) (in …
25 %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %1
46 %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %1
H A Dinst-select-amdgcn.rcp.legacy.mir7 …own>:0:0: cannot select: %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp.legacy), %0:sgpr(s3…
8 …own>:0:0: cannot select: %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp.legacy), %0:vgpr(s3…
26 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp.legacy), %0
46 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp.legacy), %0
H A Dinst-select-amdgcn.rcp.mir22 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %0
43 %1:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %0
64 %1:vgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %0
85 %1:vgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %0
H A Dirtranslator-fast-math-flags.ll23 ; CHECK: = nsz G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %{{[0-9]+}}(s32)
25 %res = call nsz float @llvm.amdgcn.rcp.f32 (float %arg0)
31 declare float @llvm.amdgcn.rcp.f32(float)
H A Dcombine-rsq.ll33 %b = call float @llvm.amdgcn.rcp.f32(float %a)
43 %a = call float @llvm.amdgcn.rcp.f32(float %arg1)
50 declare float @llvm.amdgcn.rcp.f32(float)
H A Dlegalize-fdiv.mir34 ; SI-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
56 ; VI-NEXT: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[FPEXT1]](s32)
71 ; GFX9-NEXT: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[FPEXT1]](s32)
133 ; SI-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
152 ; VI-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
171 ; GFX9-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
236 ; SI-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
257 ; VI-NEXT: [[INT4:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s32)
458 ; SI-NEXT: [[INT2:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s64)
484 ; VI-NEXT: [[INT2:%[0-9]+]]:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[INT]](s64)
[all …]
H A Dcombine-rsq.mir21 %3:_(s32) = afn G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %2:_(s32)
41 %2:_(s32) = afn G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), %0:_(s32)
H A Dlegalize-intrinsic-amdgcn-fdiv-fast.mir22 ; CHECK-NEXT: [[INT:%[0-9]+]]:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[FMUL]](s32)
50 … ; CHECK-NEXT: [[INT:%[0-9]+]]:_(s32) = nsz G_INTRINSIC intrinsic(@llvm.amdgcn.rcp), [[FMUL]](s32)
/llvm-project-15.0.7/mlir/test/Dialect/LLVMIR/
H A Doptimize-for-nvvm.mlir9 // CHECK-DAG: %[[rcp:.*]] = nvvm.rcp.approx.ftz.f %[[rhs]] : f32
10 // CHECK-DAG: %[[approx:.*]] = llvm.fmul %[[lhs]], %[[rcp]] : f32
13 …// CHECK-DAG: %[[refined:.*]] = "llvm.intr.fma"(%[[err]], %[[rcp]], %[[approx]]) : (f32, f32, f32)…
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A D2008-05-22-FoldUnalignedLoad.ll6 %inv = call <4 x float> @llvm.x86.sse.rcp.ps(<4 x float> %tmp2)
17 declare <4 x float> @llvm.x86.sse.rcp.ps(<4 x float>)
H A D2013-03-13-VEX-DestReg.ll18 %1 = tail call <4 x float> @llvm.x86.sse.rcp.ss(<4 x float> %vecinit4.i.i) #2
24 declare <4 x float> @llvm.x86.sse.rcp.ss(<4 x float>) #1
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/Transforms/
H A DOptimizeForNVVM.cpp58 Value rcp = rewriter.create<NVVM::RcpApproxFtzF32Op>(loc, f32Type, rhs); in matchAndRewrite() local
59 Value approx = rewriter.create<LLVM::FMulOp>(loc, lhs, rcp); in matchAndRewrite()
65 Value refined = rewriter.create<LLVM::FMAOp>(loc, err, rcp, approx); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombine.td31 (defs root:$rcp, build_fn_matchinfo:$matchinfo),
32 (match (wip_match_opcode G_INTRINSIC, G_FSQRT):$rcp,
33 [{ return PostLegalizerHelper.matchRcpSqrtToRsq(*${rcp}, ${matchinfo}); }]),
34 (apply [{ Helper.applyBuildFn(*${rcp}, ${matchinfo}); }])>;
/llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/
H A Dfast-math.ll75 ; CHECK: rcp.approx.ftz.f64
150 ; CHECK: rcp.rn.f32
174 ; CHECK: rcp.rn.ftz.f32
198 ; CHECK: rcp.approx.f32
222 ; CHECK: rcp.approx.ftz.f32

123