| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/AMDGPU/ |
| H A D | ldexp.ll | 8 %call = call float @llvm.amdgcn.ldexp.f32(float undef, i32 undef) 22 %zero = call float @llvm.amdgcn.ldexp.f32(float %x, i32 0) 25 %undef = call float @llvm.amdgcn.ldexp.f32(float %x, i32 undef) 28 %one = call float @llvm.amdgcn.ldexp.f32(float %x, i32 1) 41 %zero = call float @llvm.amdgcn.ldexp.f32(float 0.0, i32 %y) 47 %undef = call float @llvm.amdgcn.ldexp.f32(float undef, i32 %y) 142 %zero = call float @llvm.amdgcn.ldexp.f32(float 0.0, i32 0) 148 %one = call float @llvm.amdgcn.ldexp.f32(float 0.0, i32 1) 337 declare half @llvm.amdgcn.ldexp.f16(half, i32) #1 338 declare float @llvm.amdgcn.ldexp.f32(float, i32) #1 [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | llvm.amdgcn.ldexp.ll | 4 declare float @llvm.amdgcn.ldexp.f32(float, i32) nounwind readnone 5 declare double @llvm.amdgcn.ldexp.f64(double, i32) nounwind readnone 11 %result = call float @llvm.amdgcn.ldexp.f32(float %a, i32 %b) nounwind readnone 20 %result = call double @llvm.amdgcn.ldexp.f64(double %a, i32 %b) nounwind readnone 28 %result = call float @llvm.amdgcn.ldexp.f32(float undef, i32 %b) nounwind readnone
|
| H A D | llvm.amdgcn.ldexp.f16.ll | 3 declare half @llvm.amdgcn.ldexp.f16(half %a, i32 %b) 16 %r.val = call half @llvm.amdgcn.ldexp.f16(half %a.val, i32 %b.val) 29 %r.val = call half @llvm.amdgcn.ldexp.f16(half 2.0, i32 %b.val) 42 %r.val = call half @llvm.amdgcn.ldexp.f16(half %a.val, i32 2)
|
| /llvm-project-15.0.7/libclc/amdgcn/lib/math/ |
| H A D | ldexp.cl | 34 // This defines all the ldexp(floatN, intN) variants. 35 _CLC_DEFINE_BINARY_BUILTIN(float, ldexp, BUILTINF, float, int); 39 // This defines all the ldexp(doubleN, intN) variants. 40 _CLC_DEFINE_BINARY_BUILTIN(double, ldexp, __builtin_amdgcn_ldexp, double, int); 43 // This defines all the ldexp(GENTYPE, int); 44 #define __CLC_BODY <../../../generic/lib/math/ldexp.inc>
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | exp2-1.ll | 14 ; Check exp2(sitofp(x)) -> ldexp(1.0, sext(x)). 18 ; LDEXP32-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[X:%.*]]) 27 ; NOLDEXPF-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[X:%.*]]) 43 ; LDEXP32-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[TMP1]]) 47 ; LDEXP16-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i16 [[X:%.*]]) 52 ; NOLDEXPF-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[TMP1]]) 68 ; LDEXP32-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[TMP1]]) 73 ; LDEXP16-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i16 [[TMP1]]) 78 ; NOLDEXPF-NEXT: [[LDEXP:%.*]] = call double @ldexp(double 1.000000e+00, i32 [[TMP1]]) 116 ; Check exp2(uitofp(x)) -> ldexp(1.0, zext(x)). [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
| H A D | inst-select-amdgcn.ldexp.s16.mir | 5 …wn>:0:0: cannot select: %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2:sgpr(s16), %1… 6 …wn>:0:0: cannot select: %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2:vgpr(s16), %1… 7 …wn>:0:0: cannot select: %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2:vgpr(s16), %1… 27 %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2, %1 49 %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2, %1 71 %3:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %2, %1
|
| H A D | inst-select-amdgcn.ldexp.mir | 22 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1 44 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1 66 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1 88 %2:vgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1 110 %2:vgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1 132 %2:vgpr(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.ldexp), %0, %1
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Mips/ |
| H A D | 2008-11-10-xint_to_fp.ll | 18 tail call double @ldexp( double %1, i32 -48 ) nounwind ; <double>:2 [#uses=1] 22 tail call double @ldexp( double %5, i32 -32 ) nounwind ; <double>:6 [#uses=1] 27 tail call double @ldexp( double %10, i32 -16 ) nounwind ; <double>:11 [#uses=1] 34 declare double @ldexp(double, i32) 42 tail call double @ldexp( double %2, i32 -48 ) nounwind ; <double>:3 [#uses=1] 46 tail call double @ldexp( double %6, i32 -32 ) nounwind ; <double>:7 [#uses=1] 51 tail call double @ldexp( double %11, i32 -16 ) nounwind ; <double>:12 [#uses=1]
|
| /llvm-project-15.0.7/libclc/generic/lib/math/ |
| H A D | ldexp.cl | 29 _CLC_DEFINE_BINARY_BUILTIN(float, ldexp, __clc_ldexp, float, int) 35 _CLC_DEFINE_BINARY_BUILTIN(double, ldexp, __clc_ldexp, double, int) 42 _CLC_DEFINE_BINARY_BUILTIN(half, ldexp, __clc_ldexp, half, int) 45 // This defines all the ldexp(GENTYPE, int) variants 46 #define __CLC_BODY <ldexp.inc>
|
| H A D | ldexp.inc | 23 // TODO: Enable half precision when ldexp is implemented. 28 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE ldexp(__CLC_GENTYPE x, int n) { 29 return ldexp(x, (__CLC_INTN)n);
|
| /llvm-project-15.0.7/llvm/test/Transforms/RewriteStatepointsForGC/ |
| H A D | libcall.ll | 7 declare double @ldexp(double %x, i32 %n) nounwind readnone 11 ; CHECK-NEXT: %res = call double @ldexp(double %x, i32 5) 13 %res = call double @ldexp(double %x, i32 5) nounwind readnone
|
| /llvm-project-15.0.7/libc/src/math/generic/ |
| H A D | ldexp.cpp | 15 LLVM_LIBC_FUNCTION(double, ldexp, (double x, int exp)) { 16 return fputil::ldexp(x, exp);
|
| /llvm-project-15.0.7/llvm/test/Transforms/PlaceSafepoints/ |
| H A D | libcall.ll | 5 declare double @ldexp(double %x, i32 %n) nounwind readnone 18 ; CHECK-NEXT: %x_exp = call double @ldexp(double %x_loop, i32 5) 22 %x_exp = call double @ldexp(double %x_loop, i32 5) nounwind readnone
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | hexfloat.h | 43 value_ = std::ldexp(m1 + s * std::ldexp(T(m0), exp2), exp); in hexfloat()
|
| /llvm-project-15.0.7/libc/test/src/math/exhaustive/ |
| H A D | fmod_generic_impl_test.cpp | 50 T y = by * std::ldexp(2, iy); in testExtensive() 55 T x = bx * std::ldexp(2, ix); in testExtensive()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | 2006-08-07-CycleInDAG.ll | 12 %tmp13.i12.i = tail call double @ldexp( double 0.000000e+00, i32 0 ) ; <double> [#uses=1] 31 declare double @ldexp(double, i32)
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | Numeric.cpp | 84 Real<4>{3.0} + std::ldexp(Real<4>{1.0}, -22)); in TEST() 86 Real<8>{1.0} + std::ldexp(Real<8>{1.0}, -52)); in TEST() 88 Real<8>{1.0} - std::ldexp(Real<8>{1.0}, -52)); in TEST() 202 EXPECT_EQ(RTNAME(Spacing4)(Real<4>{3.0}), std::ldexp(Real<4>{1.0}, -22)); in TEST()
|
| /llvm-project-15.0.7/libclc/generic/include/clc/math/ |
| H A D | ldexp.inc | 23 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE ldexp(__CLC_GENTYPE x, int n); 27 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE ldexp(__CLC_GENTYPE x, __CLC_INTN n);
|
| H A D | ldexp.h | 23 #define __CLC_BODY <clc/math/ldexp.inc>
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | __clang_cuda_math_forward_declares.h | 117 __DEVICE__ double ldexp(double, int); 118 __DEVICE__ float ldexp(float, int); 240 using ::ldexp;
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | 2009-08-21-PostRAKill3.ll | 19 %exp2 = call double @ldexp(double 1.000000e+00, i32 %level) nounwind ; <double> [#uses=1] 32 declare double @ldexp(double, i32)
|
| /llvm-project-15.0.7/libc/fuzzing/math/ |
| H A D | math_differential_fuzz.cpp | 142 TwoInputSingleOutputDiff<double, int>(&__llvm_libc::ldexp, &::ldexp, data, in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | type-promotion-in-math-fn.cpp | 32 double ldexp(double, double); 149 ldexp(a, b); in check_all_fns()
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | ldexp_test.cpp | 13 LIST_LDEXP_TESTS(double, __llvm_libc::ldexp)
|
| /llvm-project-15.0.7/libc/src/math/ |
| H A D | ldexp.h | 14 double ldexp(double x, int exp);
|