Home
last modified time | relevance | path

Searched refs:power (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Domit-urem-of-power-of-two-or-zero-when-comparing-with-zero.ll6 ; Iff C is not a power of two (those should not get to here though),
20 %t0 = and i32 %x, 128 ; clearly a power-of-two or zero
21 %t1 = urem i32 %t0, 6 ; '6' is clearly not a power of two
32 %t0 = and i32 %x, 128 ; clearly a power-of-two or zero
33 %t1 = or i32 %y, 6 ; two bits set, clearly not a power of two
47 %t0 = and i32 %x, 1 ; clearly a power-of-two or zero
49 %t2 = urem i32 %t1, 3 ; '3' is clearly not a power of two
62 %t0 = and i32 %x, 2 ; clearly a power-of-two or zero
64 %t2 = urem i32 %t1, 3 ; '3' is clearly not a power of two
147 %t0 = and i32 %x, 3 ; up to two bits set, not power-of-two
[all …]
H A Dudiv-pow2-vscale-inseltpoison.ll3 ; This vscale udiv with a power-of-2 spalt on the rhs should not crash opt
15 ; This fixed width udiv with a power-of-2 splat on the rhs should also not
H A Dudiv-pow2-vscale.ll3 ; This vscale udiv with a power-of-2 spalt on the rhs should not crash opt
15 ; This fixed width udiv with a power-of-2 splat on the rhs should also not
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dint-power.h20 const INT &power,
26 } else if (power.IsZero()) {
31 bool negativePower{power.IsNegative()};
32 INT absPower{power.ABS().value};
53 ValueWithRealFlags<REAL> IntPower(const REAL &base, const INT &power,
56 return TimesIntPowerOf(one, base, power, rounding);
/llvm-project-15.0.7/llvm/test/Transforms/FunctionSpecialization/
H A Dspecialize-multiple-arguments.ll10 ; FnSpecialization: FormalArg = binop1, ActualArg = power
17 ; FnSpecialization: FormalArg = binop2, ActualArg = power
24 …:%.*]] = call i64 @compute(i64 [[X:%.*]], i64 [[Y:%.*]], i64 (i64, i64)* @power, i64 (i64, i64)* @…
31 …MP3:%.*]] = call i64 @compute(i64 [[TMP2]], i64 42, i64 (i64, i64)* @minus, i64 (i64, i64)* @power)
45 …MP3:%.*]] = call i64 @compute(i64 [[TMP2]], i64 42, i64 (i64, i64)* @minus, i64 (i64, i64)* @power)
59 …3:%.*]] = call i64 @compute.2(i64 [[TMP2]], i64 42, i64 (i64, i64)* @minus, i64 (i64, i64)* @power)
80 %tmp0 = call i64 @compute(i64 %x, i64 %y, i64 (i64, i64)* @power, i64 (i64, i64)* @mul)
89 %tmp3 = call i64 @compute(i64 %tmp2, i64 42, i64 (i64, i64)* @minus, i64 (i64, i64)* @power)
109 ; THREE-NEXT: [[TMP1:%.+]] = call i64 @power(i64 %x, i64 %y)
119 ; THREE-NEXT: [[TMP0:%.+]] = call i64 @power(i64 %x, i64 %y)
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/XCore/
H A Dfloat-intrinsics.ll109 define double @pow(double %F, double %power) {
112 %result = call double @llvm.pow.f64(double %F, double %power)
118 define float @powf(float %F, float %power) {
121 %result = call float @llvm.pow.f32(float %F, float %power)
125 define double @powi(double %F, i32 %power) {
128 %result = call double @llvm.powi.f64.i32(double %F, i32 %power)
134 define float @powif(float %F, i32 %power) {
137 %result = call float @llvm.powi.f32.i32(float %F, i32 %power)
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Domit-urem-of-power-of-two-or-zero-when-comparing-with-zero.ll8 ; Iff C is not a power of two (those should not get to here though),
22 %t0 = and i32 %x, 128 ; clearly a power-of-two or zero
23 %t1 = urem i32 %t0, 6 ; '6' is clearly not a power of two
34 %t0 = and i32 %x, 128 ; clearly a power-of-two or zero
35 %t1 = or i32 %y, 6 ; two bits set, clearly not a power of two
52 %t0 = and i32 %x, 1 ; clearly a power-of-two or zero
54 %t2 = urem i32 %t1, 3 ; '3' is clearly not a power of two
70 %t0 = and i32 %x, 2 ; clearly a power-of-two or zero
72 %t2 = urem i32 %t1, 3 ; '3' is clearly not a power of two
369 %t0 = and i32 %x, 3 ; up to two bits set, not power-of-two
[all …]
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dreal.cpp311 template <typename FLT = float> FLT ToIntPower(FLT x, int power) { in ToIntPower() argument
312 if (power == 0) { in ToIntPower()
315 bool negative{power < 0}; in ToIntPower()
317 power = -power; in ToIntPower()
320 while (power > 0) { in ToIntPower()
321 if (power & 1) { in ToIntPower()
325 power >>= 1; in ToIntPower()
334 FLT TimesIntPowerOfTen(FLT x, int power) { in TimesIntPowerOfTen() argument
335 if (power > decimalDigits || power < -decimalDigits) { in TimesIntPowerOfTen()
338 auto big{ToIntPower<FLT>(maxExactPowerOfTen, power / decimalDigits)}; in TimesIntPowerOfTen()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dpr36061.ll9 define double @powi(double %value, i32 %power) {
33 %1 = tail call double @llvm.powi.f64.i32(double %value, i32 %power)
39 define float @powfi(float %value, i32 %power) {
63 %1 = tail call float @llvm.powi.f32.i32(float %value, i32 %power)
H A Dpowif64_16.ll3 declare float @llvm.powi.f32.i32(float %Val, i32 %power)
4 declare double @llvm.powi.f64.i32(double %Val, i32 %power)
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
H A Dnested.pass.cpp26 struct power struct
50 auto g = std::bind(power(), 2, _1); in main() argument
/llvm-project-15.0.7/clang/test/Parser/
H A Dpragma-options.c12 #pragma options align=power
22 #pragma align=power
/llvm-project-15.0.7/llvm/test/MC/AsmParser/
H A Ddirective_align.s15 # CHECK-WARN: error: alignment must be a power of 2
32 # CHECK-WARN: error: alignment must be a power of 2
/llvm-project-15.0.7/llvm/test/Analysis/ValueTracking/
H A Dknown-power-of-two.ll4 ; An arithmetic shift right of a power of two is not a power
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dvcvt_combine.ll23 ; Test which should not fold due to non-power of 2.
35 ; Test which should not fold due to power of 2 out of range.
46 ; Test which case where const is max power of 2 (i.e., 2^32).
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dpower-sched-no-cycle.mir2 # RUN: llc -march=amdgcn -mcpu=gfx90a -run-pass=postmisched %s -o - -amdgpu-enable-power-sched=true…
3 # This test represents a pattern which caused power-sched to introduce cycles into the Scheduling g…
/llvm-project-15.0.7/llvm/test/Transforms/LoopVectorize/X86/
H A Dfp80-widest-type.ll7 ; Make sure non-power-of-2 types are handled correctly, i.e., MaxVF is still a power-of-2.
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dalign1.test37 ## Test we fail gracefully when alignment value is not a power of 2 (#1).
44 # ERR: {{.*}}.script:1: alignment must be power of 2
H A Dsubalign.s37 ## Test we fail gracefully when alignment value is not a power of 2.
40 # ERR2: {{.*}}.script:1: alignment must be power of 2
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbig-radix-floating-point.h35 static constexpr std::uint64_t TenToThe(int power) { in TenToThe() argument
36 return power <= 0 ? 1 : 10 * TenToThe(power - 1); in TenToThe()
/llvm-project-15.0.7/llvm/test/Assembler/
H A Ddatalayout-invalid-stack-natural-alignment.ll3 ; CHECK: error: Alignment is neither 0 nor a power of 2
H A Ddatalayout-invalid-function-ptr-alignment.ll3 ; CHECK: error: Alignment is neither 0 nor a power of 2
H A Dinvalid-datalayout23.ll5 ; CHECK: Invalid ABI alignment, must be a power of 2
H A Dinvalid-datalayout20.ll5 ; CHECK: Pointer ABI alignment must be a power of 2
H A Dinvalid-datalayout21.ll5 ; CHECK: Pointer preferred alignment must be a power of 2

12345678910>>...12