Home
last modified time | relevance | path

Searched full:ceil (Results 1 – 25 of 574) sorted by relevance

12345678910>>...23

/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Damdgpu-simplify-libcall-ceil.ll30 ; CHECK-NEXT: [[CEIL:%.*]] = tail call float @llvm.ceil.f32(float [[ARG]])
31 ; CHECK-NEXT: ret float [[CEIL]]
33 %ceil = tail call float @_Z4ceilf(float %arg)
34 ret float %ceil
40 ; CHECK-NEXT: [[CEIL:%.*]] = tail call <2 x float> @llvm.ceil.v2f32(<2 x float> [[ARG]])
41 ; CHECK-NEXT: ret <2 x float> [[CEIL]]
43 %ceil = tail call <2 x float> @_Z4ceilDv2_f(<2 x float> %arg)
44 ret <2 x float> %ceil
50 ; CHECK-NEXT: [[CEIL:%.*]] = tail call <3 x float> @llvm.ceil.v3f32(<3 x float> [[ARG]])
51 ; CHECK-NEXT: ret <3 x float> [[CEIL]]
[all …]
H A Dfceil.ll5 declare float @llvm.ceil.f32(float) nounwind readnone
6 declare <2 x float> @llvm.ceil.v2f32(<2 x float>) nounwind readnone
7 declare <3 x float> @llvm.ceil.v3f32(<3 x float>) nounwind readnone
8 declare <4 x float> @llvm.ceil.v4f32(<4 x float>) nounwind readnone
9 declare <8 x float> @llvm.ceil.v8f32(<8 x float>) nounwind readnone
10 declare <16 x float> @llvm.ceil.v16f32(<16 x float>) nounwind readnone
15 ; EG: CEIL {{\*? *}}[[RESULT]]
17 %y = call float @llvm.ceil.f32(float %x) nounwind readnone
26 ; EG: CEIL {{\*? *}}[[RESULT]]
27 ; EG: CEIL {{\*? *}}[[RESULT]]
[all …]
H A Dfceil64.ll5 declare double @llvm.ceil.f64(double) nounwind readnone
6 declare <2 x double> @llvm.ceil.v2f64(<2 x double>) nounwind readnone
7 declare <3 x double> @llvm.ceil.v3f64(<3 x double>) nounwind readnone
8 declare <4 x double> @llvm.ceil.v4f64(<4 x double>) nounwind readnone
9 declare <8 x double> @llvm.ceil.v8f64(<8 x double>) nounwind readnone
10 declare <16 x double> @llvm.ceil.v16f64(<16 x double>) nounwind readnone
33 %y = call double @llvm.ceil.f64(double %x) nounwind readnone
42 %y = call <2 x double> @llvm.ceil.v2f64(<2 x double> %x) nounwind readnone
52 ; %y = call <3 x double> @llvm.ceil.v3f64(<3 x double> %x) nounwind readnone
63 %y = call <4 x double> @llvm.ceil.v4f64(<4 x double> %x) nounwind readnone
[all …]
/llvm-project/llvm/test/Transforms/Attributor/
H A Dnofpclass-ceil.ll4 declare float @llvm.ceil.f32(float)
5 declare ppc_fp128 @llvm.ceil.ppcf128(ppc_fp128)
10 ; CHECK-NEXT: [[CALL:%.*]] = call nofpclass(sub) float @llvm.ceil.f32(float [[ARG0]]) #[[ATTR2:[…
13 %call = call float @llvm.ceil.f32(float %arg0)
20 ; CHECK-NEXT: [[CALL:%.*]] = call nofpclass(inf sub) float @llvm.ceil.f32(float nofpclass(inf) […
23 %call = call float @llvm.ceil.f32(float %arg0)
30 ; CHECK-NEXT: [[CALL:%.*]] = call nofpclass(pinf sub) float @llvm.ceil.f32(float nofpclass(pinf)…
33 %call = call float @llvm.ceil.f32(float %arg0)
40 ; CHECK-NEXT: [[CALL:%.*]] = call nofpclass(ninf sub) float @llvm.ceil.f32(float nofpclass(ninf)…
43 %call = call float @llvm.ceil.f32(float %arg0)
[all …]
/llvm-project/clang/test/CodeGenHLSL/builtins/
H A Dceil.hlsl8 using hlsl::ceil;
11 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn half @llvm.ceil.f16(
13 // NO_HALF: call reassoc nnan ninf nsz arcp afn float @llvm.ceil.f32(float %0)
14 half test_ceil_half(half p0) { return ceil(p0); }
16 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <2 x half> @llvm.ceil.v2f16(
18 // NO_HALF: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.ceil.v2f32(
19 half2 test_ceil_half2(half2 p0) { return ceil(p0); }
21 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <3 x half> @llvm.ceil.v3f16(
23 // NO_HALF: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.ceil.v3f32(
24 half3 test_ceil_half3(half3 p0) { return ceil(p
[all...]
/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/
H A Dceil.ll7 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]
8 %elt.ceil = call float @llvm.ceil.f32(float %a)
9 ret float %elt.ceil
14 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]
15 %elt.ceil = call half @llvm.ceil.f16(half %a)
16 ret half %elt.ceil
19 declare half @llvm.ceil.f16(half)
20 declare float @llvm.ceil
[all...]
/llvm-project/llvm/test/CodeGen/DirectX/
H A Dceil.ll3 ; Make sure dxil operation function calls for ceil are generated for float and half.
8 %elt.ceil = call float @llvm.ceil.f32(float %a)
9 ret float %elt.ceil
15 %elt.ceil = call half @llvm.ceil.f16(half %a)
16 ret half %elt.ceil
33 %2 = call <4 x float> @llvm.ceil.v4f32(<4 x float> %a)
39 declare half @llvm.ceil.f16(half)
40 declare float @llvm.ceil
[all...]
H A Dceil_error.ll3 ; DXIL operation ceil does not support double overload type
5 ; CHECK-SAME: Cannot create Ceil operation: Invalid overload type
9 %elt.ceil = call double @llvm.ceil.f64(double %a)
10 ret double %elt.ceil
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dceil.ll3 declare float @llvm.ceil.f32(float) #0
4 declare double @llvm.ceil.f64(double) #0
5 declare <4 x float> @llvm.ceil.v4f32(<4 x float>) #0
10 %x = call float @llvm.ceil.f32(float 1.00) #0
17 %x = call float @llvm.ceil.f32(float 1.25) #0
24 %x = call float @llvm.ceil.f32(float -1.25) #0
31 …%x = call <4 x float> @llvm.ceil.v4f32(<4 x float> <float 1.00, float 1.25, float -1.25, float -1.…
38 %x = call double @llvm.ceil.f64(double 1.0) #0
45 %x = call double @llvm.ceil.f64(double 1.3) #0
52 %x = call double @llvm.ceil.f64(double -1.75) #0
/llvm-project/llvm/test/CodeGen/SPIRV/llvm-intrinsics/
H A Dceil.ll10 ; CHECK: %[[#]] = OpExtInst %[[#var1]] %[[#extinst_id]] ceil
15 %0 = tail call float @llvm.ceil.f32(float %x)
20 ; CHECK: %[[#]] = OpExtInst %[[#var2]] %[[#extinst_id]] ceil
25 %0 = tail call double @llvm.ceil.f64(double %x)
30 ; CHECK: %[[#]] = OpExtInst %[[#var3]] %[[#extinst_id]] ceil
35 %0 = tail call <4 x float> @llvm.ceil.v4f32(<4 x float> %x)
39 declare float @llvm.ceil.f32(float)
41 declare double @llvm.ceil.f64(double)
43 declare <4 x float> @llvm.ceil.v4f32(<4 x float>)
/llvm-project/llvm/test/CodeGen/RISCV/rvv/
H A Dfceil-sdnode.ll34 %a = call <vscale x 1 x bfloat> @llvm.ceil.nxv1bf16(<vscale x 1 x bfloat> %x)
57 %a = call <vscale x 2 x bfloat> @llvm.ceil.nxv2bf16(<vscale x 2 x bfloat> %x)
80 %a = call <vscale x 4 x bfloat> @llvm.ceil.nxv4bf16(<vscale x 4 x bfloat> %x)
103 %a = call <vscale x 8 x bfloat> @llvm.ceil.nxv8bf16(<vscale x 8 x bfloat> %x)
126 %a = call <vscale x 16 x bfloat> @llvm.ceil.nxv16bf16(<vscale x 16 x bfloat> %x)
163 %a = call <vscale x 32 x bfloat> @llvm.ceil.nxv32bf16(<vscale x 32 x bfloat> %x)
201 %a = call <vscale x 1 x half> @llvm.ceil.nxv1f16(<vscale x 1 x half> %x)
204 declare <vscale x 1 x half> @llvm.ceil.nxv1f16(<vscale x 1 x half>)
240 %a = call <vscale x 2 x half> @llvm.ceil.nxv2f16(<vscale x 2 x half> %x)
243 declare <vscale x 2 x half> @llvm.ceil
[all...]
H A Dfceil-constrained-sdnode.ll25 %a = call <vscale x 1 x half> @llvm.experimental.constrained.ceil.nxv1f16(<vscale x 1 x half> %x, metadata !"fpexcept.strict")
28 declare <vscale x 1 x half> @llvm.experimental.constrained.ceil.nxv1f16(<vscale x 1 x half>, metadata)
48 %a = call <vscale x 2 x half> @llvm.experimental.constrained.ceil.nxv2f16(<vscale x 2 x half> %x, metadata !"fpexcept.strict")
51 declare <vscale x 2 x half> @llvm.experimental.constrained.ceil.nxv2f16(<vscale x 2 x half>, metadata)
71 %a = call <vscale x 4 x half> @llvm.experimental.constrained.ceil.nxv4f16(<vscale x 4 x half> %x, metadata !"fpexcept.strict")
74 declare <vscale x 4 x half> @llvm.experimental.constrained.ceil.nxv4f16(<vscale x 4 x half>, metadata)
94 %a = call <vscale x 8 x half> @llvm.experimental.constrained.ceil.nxv8f16(<vscale x 8 x half> %x, metadata !"fpexcept.strict")
97 declare <vscale x 8 x half> @llvm.experimental.constrained.ceil.nxv8f16(<vscale x 8 x half>, metadata)
117 %a = call <vscale x 16 x half> @llvm.experimental.constrained.ceil.nxv16f16(<vscale x 16 x half> %x, metadata !"fpexcept.strict")
120 declare <vscale x 16 x half> @llvm.experimental.constrained.ceil
[all...]
H A Dfixed-vectors-fceil-constrained-sdnode.ll25 %a = call <1 x half> @llvm.experimental.constrained.ceil.v1f16(<1 x half> %x, metadata !"fpexcept.strict")
28 declare <1 x half> @llvm.experimental.constrained.ceil.v1f16(<1 x half>, metadata)
48 %a = call <2 x half> @llvm.experimental.constrained.ceil.v2f16(<2 x half> %x, metadata !"fpexcept.strict")
51 declare <2 x half> @llvm.experimental.constrained.ceil.v2f16(<2 x half>, metadata)
71 %a = call <4 x half> @llvm.experimental.constrained.ceil.v4f16(<4 x half> %x, metadata !"fpexcept.strict")
74 declare <4 x half> @llvm.experimental.constrained.ceil.v4f16(<4 x half>, metadata)
94 %a = call <8 x half> @llvm.experimental.constrained.ceil.v8f16(<8 x half> %x, metadata !"fpexcept.strict")
97 declare <8 x half> @llvm.experimental.constrained.ceil.v8f16(<8 x half>, metadata)
117 %a = call <16 x half> @llvm.experimental.constrained.ceil.v16f16(<16 x half> %x, metadata !"fpexcept.strict")
120 declare <16 x half> @llvm.experimental.constrained.ceil
[all...]
H A Dceil-vp.ll15 declare <vscale x 1 x bfloat> @llvm.vp.ceil.nxv1bf16(<vscale x 1 x bfloat>, <vscale x 1 x i1>, i32)
42 %v = call <vscale x 1 x bfloat> @llvm.vp.ceil.nxv1bf16(<vscale x 1 x bfloat> %va, <vscale x 1 x i1> %m, i32 %evl)
65 %v = call <vscale x 1 x bfloat> @llvm.vp.ceil.nxv1bf16(<vscale x 1 x bfloat> %va, <vscale x 1 x i1> splat (i1 true), i32 %evl)
69 declare <vscale x 2 x bfloat> @llvm.vp.ceil.nxv2bf16(<vscale x 2 x bfloat>, <vscale x 2 x i1>, i32)
96 %v = call <vscale x 2 x bfloat> @llvm.vp.ceil.nxv2bf16(<vscale x 2 x bfloat> %va, <vscale x 2 x i1> %m, i32 %evl)
119 %v = call <vscale x 2 x bfloat> @llvm.vp.ceil.nxv2bf16(<vscale x 2 x bfloat> %va, <vscale x 2 x i1> splat (i1 true), i32 %evl)
123 declare <vscale x 4 x bfloat> @llvm.vp.ceil.nxv4bf16(<vscale x 4 x bfloat>, <vscale x 4 x i1>, i32)
150 %v = call <vscale x 4 x bfloat> @llvm.vp.ceil.nxv4bf16(<vscale x 4 x bfloat> %va, <vscale x 4 x i1> %m, i32 %evl)
173 %v = call <vscale x 4 x bfloat> @llvm.vp.ceil.nxv4bf16(<vscale x 4 x bfloat> %va, <vscale x 4 x i1> splat (i1 true), i32 %evl)
177 declare <vscale x 8 x bfloat> @llvm.vp.ceil
[all...]
H A Dfixed-vectors-ceil-vp.ll11 declare <2 x half> @llvm.vp.ceil.v2f16(<2 x half>, <2 x i1>, i32)
55 %v = call <2 x half> @llvm.vp.ceil.v2f16(<2 x half> %va, <2 x i1> %m, i32 %evl)
93 %v = call <2 x half> @llvm.vp.ceil.v2f16(<2 x half> %va, <2 x i1> splat (i1 true), i32 %evl)
97 declare <4 x half> @llvm.vp.ceil.v4f16(<4 x half>, <4 x i1>, i32)
141 %v = call <4 x half> @llvm.vp.ceil.v4f16(<4 x half> %va, <4 x i1> %m, i32 %evl)
179 %v = call <4 x half> @llvm.vp.ceil.v4f16(<4 x half> %va, <4 x i1> splat (i1 true), i32 %evl)
183 declare <8 x half> @llvm.vp.ceil.v8f16(<8 x half>, <8 x i1>, i32)
227 %v = call <8 x half> @llvm.vp.ceil.v8f16(<8 x half> %va, <8 x i1> %m, i32 %evl)
265 %v = call <8 x half> @llvm.vp.ceil.v8f16(<8 x half> %va, <8 x i1> splat (i1 true), i32 %evl)
269 declare <16 x half> @llvm.vp.ceil
[all...]
/llvm-project/llvm/test/Analysis/CostModel/X86/
H A Dfround.ll16 define i32 @ceil(i32 %arg) {
17 ; SSE2-LABEL: 'ceil'
18 …Model: Found an estimated cost of 10 for instruction: %F32 = call float @llvm.ceil.f32(float undef)
19 … an estimated cost of 21 for instruction: %V2F32 = call <2 x float> @llvm.ceil.v2f32(<2 x float> u…
20 … an estimated cost of 43 for instruction: %V4F32 = call <4 x float> @llvm.ceil.v4f32(<4 x float> u…
21 … an estimated cost of 86 for instruction: %V8F32 = call <8 x float> @llvm.ceil.v8f32(<8 x float> u…
22 … estimated cost of 172 for instruction: %V16F32 = call <16 x float> @llvm.ceil.v16f32(<16 x float>…
23 …del: Found an estimated cost of 10 for instruction: %F64 = call double @llvm.ceil.f64(double undef)
24 …an estimated cost of 21 for instruction: %V2F64 = call <2 x double> @llvm.ceil.v2f64(<2 x double> …
25 …an estimated cost of 42 for instruction: %V4F64 = call <4 x double> @llvm.ceil.v4f64(<4 x double> …
[all …]
/llvm-project/llvm/test/Analysis/CostModel/AMDGPU/
H A Dfround.ll13 define i32 @ceil(i32 %arg) {
14 ; FAST-LABEL: 'ceil'
15 … Model: Found an estimated cost of 1 for instruction: %F32 = call float @llvm.ceil.f32(float undef)
16 …d an estimated cost of 4 for instruction: %V4F32 = call <4 x float> @llvm.ceil.v4f32(<4 x float> u…
17 …d an estimated cost of 8 for instruction: %V8F32 = call <8 x float> @llvm.ceil.v8f32(<8 x float> u…
18 …n estimated cost of 16 for instruction: %V16F32 = call <16 x float> @llvm.ceil.v16f32(<16 x float>…
19 …odel: Found an estimated cost of 1 for instruction: %F64 = call double @llvm.ceil.f64(double undef)
20 … an estimated cost of 2 for instruction: %V2F64 = call <2 x double> @llvm.ceil.v2f64(<2 x double> …
21 … an estimated cost of 4 for instruction: %V4F64 = call <4 x double> @llvm.ceil.v4f64(<4 x double> …
22 … an estimated cost of 8 for instruction: %V8F64 = call <8 x double> @llvm.ceil.v8f64(<8 x double> …
[all …]
/llvm-project/flang/test/Lower/math-lowering/
H A Dceiling.f9014 ! FAST: {{%[A-Za-z0-9._]+}} = math.ceil {{%[A-Za-z0-9._]+}} {{.*}}: f32
15 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.ceil {{%[A-Za-z0-9._]+}} {{.*}}: f32
24 ! FAST: {{%[A-Za-z0-9._]+}} = math.ceil {{%[A-Za-z0-9._]+}} {{.*}}: f64
25 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.ceil {{%[A-Za-z0-9._]+}} {{.*}}: f64
26 ! PRECISE: {{%[A-Za-z0-9._]+}} = fir.call @ceil({{%[A-Za-z0-9._]+}}) {{.*}}: (f64) -> f64
29 ! PRECISE-DAG: func.func private @ceil(f64) -> f64 attributes {fir.bindc_name = "ceil", fir.runtime}
/llvm-project/llvm/test/CodeGen/ARM/
H A Dno-tail-call.ll8 declare float @llvm.ceil.f32(float)
10 ; Check that we are not emitting a tail call for the last call to ceil.
30 %5 = call float @llvm.ceil.f32(float 5.000000e+00)
32 %7 = call float @llvm.ceil.f32(float %6)
38 ; Check that we are not emitting a tail call for the last call to ceil.
58 %5 = call float @llvm.ceil.f32(float 5.000000e+00)
60 %7 = call float @llvm.ceil.f32(float %6)
/llvm-project/llvm/test/CodeGen/Mips/
H A Dcall-optimization.ll56 ; O32-DAG: lw $25, %call16(ceil)
60 ; O32: lw $25, %call16(ceil)
64 ; O32: lw $25, %call16(ceil)
69 ; O32-LOADTGT-DAG: lw $25, %call16(ceil)
83 %call = tail call double @ceil(double %d)
84 %call1 = tail call double @ceil(double %call)
86 %call2 = tail call double @ceil(double %call1)
91 declare double @ceil(double)
/llvm-project/llvm/test/CodeGen/SystemZ/
H A Dfp-round-01.ll101 ; Test ceil for f32.
102 declare float @llvm.ceil.f32(float %f)
107 %res = call float @llvm.ceil.f32(float %f)
111 ; Test ceil for f64.
112 declare double @llvm.ceil.f64(double %f)
115 ; CHECK: brasl %r14, ceil@PLT
117 %res = call double @llvm.ceil.f64(double %f)
121 ; Test ceil for f128.
122 declare fp128 @llvm.ceil.f128(fp128 %f)
128 %res = call fp128 @llvm.ceil.f128(fp128 %src)
H A Dfp-round-02.ll105 ; Test ceil for f32.
106 declare float @llvm.ceil.f32(float %f)
111 %res = call float @llvm.ceil.f32(float %f)
115 ; Test ceil for f64.
116 declare double @llvm.ceil.f64(double %f)
121 %res = call double @llvm.ceil.f64(double %f)
125 ; Test ceil for f128.
126 declare fp128 @llvm.ceil.f128(fp128 %f)
132 %res = call fp128 @llvm.ceil.f128(fp128 %src)
H A Dfp-strict-round-01.ll125 ; Test ceil for f32.
126 declare float @llvm.experimental.constrained.ceil.f32(float, metadata)
131 %res = call float @llvm.experimental.constrained.ceil.f32(
137 ; Test ceil for f64.
138 declare double @llvm.experimental.constrained.ceil.f64(double, metadata)
141 ; CHECK: brasl %r14, ceil@PLT
143 %res = call double @llvm.experimental.constrained.ceil.f64(
149 ; Test ceil for f128.
150 declare fp128 @llvm.experimental.constrained.ceil.f128(fp128, metadata)
156 %res = call fp128 @llvm.experimental.constrained.ceil.f128(
/llvm-project/llvm/test/Analysis/CostModel/RISCV/
H A Dfround.ll110 define void @ceil() {
111 ; CHECK-LABEL: 'ceil'
112 ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %1 = call bfloat @llvm.ceil.bf16(bfloat undef)
113 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x bfloat> @llvm.ceil.v2bf16(<2 x bfloat> undef)
114 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x bfloat> @llvm.ceil.v4bf16(<4 x bfloat> undef)
115 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x bfloat> @llvm.ceil.v8bf16(<8 x bfloat> undef)
116 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x bfloat> @llvm.ceil.v16bf16(<16 x bfloat> undef)
117 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call <vscale x 1 x bfloat> @llvm.ceil.nxv1bf16(<vscale x 1 x bfloat> undef)
118 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call <vscale x 2 x bfloat> @llvm.ceil.nxv2bf16(<vscale x 2 x bfloat> undef)
119 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call <vscale x 4 x bfloat> @llvm.ceil
[all...]
/llvm-project/libcxx/test/std/time/time.duration/time.duration.cast/
H A Dceil.pass.cpp13 // ceil
18 // ceil(const duration<Rep, Period>& d);
31 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test()
33 assert(std::chrono::ceil<ToDuration>(f) == d); in test()
47 …constexpr std::chrono::hours h1 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()
49 …constexpr std::chrono::hours h2 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()

12345678910>>...23