/llvm-project/libc/AOR_v20.02/math/test/testcases/directed/ |
H A D | powf.tst | 1 ; powf.tst - Directed test cases for powf 7 func=powf op1=7f800001 op2=7f800001 result=7fc00001 errno=0 status=i 8 func=powf op1=7f800001 op2=ff800001 result=7fc00001 errno=0 status=i 9 func=powf op1=7f800001 op2=7fc00001 result=7fc00001 errno=0 status=i 10 func=powf op1=7f800001 op2=ffc00001 result=7fc00001 errno=0 status=i 11 func=powf op1=7f800001 op2=7f800000 result=7fc00001 errno=0 status=i 12 func=powf op1=7f800001 op2=40800000 result=7fc00001 errno=0 status=i 13 func=powf op1=7f800001 op2=40400000 result=7fc00001 errno=0 status=i 14 func=powf op1=7f800001 op2=3f000000 result=7fc00001 errno=0 status=i 15 func=powf op1=7f800001 op2=00000000 result=7fc00001 errno=0 status=i [all …]
|
/llvm-project/libc/test/src/math/smoke/ |
H A D | powf_test.cpp | 1 //===-- Unittests for powf ------------------------------------------------===// 11 #include "src/math/powf.h" 37 inf, LIBC_NAMESPACE::powf(zero, neg_odd_integer), FE_DIVBYZERO); in TEST_F() 39 inf, LIBC_NAMESPACE::powf(zero, neg_even_integer), FE_DIVBYZERO); in TEST_F() 41 inf, LIBC_NAMESPACE::powf(zero, neg_non_integer), FE_DIVBYZERO); in TEST_F() 42 EXPECT_FP_EQ(zero, LIBC_NAMESPACE::powf(zero, pos_odd_integer)); in TEST_F() 43 EXPECT_FP_EQ(zero, LIBC_NAMESPACE::powf(zero, pos_even_integer)); in TEST_F() 44 EXPECT_FP_EQ(zero, LIBC_NAMESPACE::powf(zero, pos_non_integer)); in TEST_F() 45 EXPECT_FP_EQ(zero, LIBC_NAMESPACE::powf(zero, one_half)); in TEST_F() 46 EXPECT_FP_EQ(1.0f, LIBC_NAMESPACE::powf(zer in TEST_F() [all...] |
/llvm-project/llvm/test/CodeGen/ARM/ |
H A D | pow.ll | 13 ; SOFTFLOAT: bl powf 47 ; SOFTFLOAT: bl powf 48 ; SOFTFLOAT: bl powf 49 ; SOFTFLOAT: bl powf 50 ; SOFTFLOAT: bl powf 77 ; SOFTFLOAT: bl powf 78 ; HARDFLOAT: b powf 93 ; ANY: bl powf 94 ; ANY: bl powf 95 ; ANY: bl powf [all …]
|
/llvm-project/llvm/test/Transforms/InstCombine/ |
H A D | pow-1.ll | 22 declare float @powf(float, float) 40 ; VC32-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) 45 ; VC51-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) 58 ; NOLIB-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) 61 %retval = call float @powf(float 1.0, float %x) 72 ; VC32-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) #[[ATTR2:[0-9]+]] 77 ; VC51-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) #[[ATTR2:[0-9]+]] 90 ; NOLIB-NEXT: [[RETVAL:%.*]] = call float @powf(float 1.000000e+00, float [[X]]) #[[ATTR2:[0-9]+]] 93 %retval = call float @powf(float 1.0, float %x) #0 153 ; VC32-NEXT: [[RETVAL:%.*]] = call float @powf(floa [all...] |
H A D | pow-exp.ll | 25 %pow = call fast float @powf(float %call, float %y) 91 %pow = call fast float @powf(float %call, float %y) nounwind readnone 177 ; CHECK-NEXT: [[POW:%.*]] = call fast float @powf(float [[EXP]], float [[Y:%.*]]) 182 %pow = call fast float @powf(float %exp, float %y) 283 %call = tail call afn nnan ninf float @powf(float 0x3FE6666660000000, float %e) 293 %call = tail call afn nnan ninf float @powf(float 0x4031B33340000000, float %e) 303 %call = tail call afn nnan ninf float @powf(float 0x4024333340000000, float %e) 313 %call = tail call afn nnan ninf float @powf(float 1.000000e+01, float %e) 323 %call = tail call afn nnan ninf float @powf(float 0x3780000000000000, float %e) 416 ; CHECK-NEXT: [[CALL:%.*]] = tail call nnan ninf afn float @powf(float 0.000000e+00, float [[E:%… [all …]
|
H A D | win-math.ll | 209 ; MSVCXX-NOT: float @powf 211 ; MSVC19-NOT: float @powf 311 declare float @powf(float, float) 318 ; MSVC32: float @powf 320 ; MSVC51: float @powf 321 ; MSVC64-NOT: float @powf 324 ; MSVC83-NOT: float @powf 327 ; MINGW32-NOT: float @powf 330 ; MINGW64-NOT: float @powf 333 %1 = call ninf float @powf(float %x, float 0.5)
|
H A D | pow-cbrt.ll | 51 ; CHECK-NEXT: [[POW:%.*]] = call fast float @powf(float [[X:%.*]], float 0x3FD5555560000000) 54 %pow = call fast float @powf(float %x, float 0x3fd5555560000000) 105 ; CHECK-NEXT: [[POW:%.*]] = call fast float @powf(float [[X:%.*]], float 0xBFD5555560000000) 108 %pow = call fast float @powf(float %x, float 0xbfd5555560000000) 115 declare float @powf(float, float)
|
H A D | pow-sqrt.ll | 134 %pow = call ninf nsz float @powf(float %x, float 5.0e-01) 154 %pow = call fast float @powf(float %x, float 5.0e-01) 172 ; CHECK-NEXT: [[POW:%.*]] = call float @powf(float [[X:%.*]], float -5.000000e-01) 175 %pow = call float @powf(float %x, float -5.0e-01) 190 %pow = call reassoc ninf float @powf(float %x, float -5.0e-01) 198 ; CHECK-NEXT: [[POW:%.*]] = call afn float @powf(float [[X:%.*]], float -5.000000e-01) 201 %pow = call afn float @powf(float %x, float -5.0e-01) 315 %pow = call afn ninf nsz float @powf(float %x, float -5.0e-01) 327 %pow = call fast float @powf(float %x, float -5.0e-01) 347 declare float @powf(floa [all...] |
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | fpow.ll | 17 ; CHECK-NEXT: b powf 31 ; CHECK-NEXT: bl powf 304 ; CHECK-SD-NEXT: bl powf 310 ; CHECK-SD-NEXT: bl powf 334 ; CHECK-GI-NEXT: bl powf 339 ; CHECK-GI-NEXT: bl powf 363 ; CHECK-SD-NEXT: bl powf 369 ; CHECK-SD-NEXT: bl powf 377 ; CHECK-SD-NEXT: bl powf 404 ; CHECK-GI-NEXT: bl powf [all...] |
H A D | pow.ll | 54 ; CHECK-NEXT: b powf 76 ; CHECK-NEXT: bl powf 82 ; CHECK-NEXT: bl powf 90 ; CHECK-NEXT: bl powf 98 ; CHECK-NEXT: bl powf
|
H A D | win64-fpowi.ll | 19 ; CHECK-NEXT: b powf 34 ; CHECK-NEXT: bl powf 105 ; CHECK-NEXT: bl powf 111 ; CHECK-NEXT: bl powf
|
/llvm-project/clang/test/CodeGen/ |
H A D | pr87758.c | 16 float powf(float x, float y); // binary fp builtin 30 // CHECK-PRECISE: call fast float @powf( 42 a = powf(a,b); in fp_precise_off_libm_calls() 53 // CHECK: call float @powf( 59 // CHECK-PRECISE: call float @powf( 65 // CHECK-FAST: call nofpclass(nan inf) float @powf( 71 a = powf(a,b); in fp_precise_on_libm_calls()
|
/llvm-project/libc/AOR_v20.02/math/test/ |
H A D | runulp.sh | 117 t powf 0x1p-1 0x1p1 x 0x1p-7 0x1p7 50000 118 t powf 0x1p-1 0x1p1 x -0x1p-7 -0x1p7 50000 119 t powf 0x1p-70 0x1p70 x 0x1p-1 0x1p1 50000 120 t powf 0x1p-70 0x1p70 x -0x1p-1 -0x1p1 50000 121 t powf 0x1.ep-1 0x1.1p0 x 0x1p8 0x1p14 50000 122 t powf 0x1.ep-1 0x1.1p0 x -0x1p8 -0x1p14 50000 286 powf __s_powf $runs 287 powf __v_powf $runv 288 powf __vn_powf $runvn 289 powf _ZGVnN4vv_powf $runvn
|
/llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/ |
H A D | legalize-pow.mir | 22 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 55 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 64 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 73 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 82 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 115 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 124 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 133 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 142 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … 151 …; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, … [all …]
|
/llvm-project/mlir/test/Dialect/Math/ |
H A D | algebraic-simplification.mlir | 8 %0 = math.powf %arg0, %c : f32 9 %1 = math.powf %arg1, %v : vector<4xf32> 20 %0 = math.powf %arg0, %c : f32 21 %1 = math.powf %arg1, %v : vector<4xf32> 34 %0 = math.powf %arg0, %c : f32 35 %1 = math.powf %arg1, %v : vector<4xf32> 48 %0 = math.powf %arg0, %c : f32 49 %1 = math.powf %arg1, %v : vector<4xf32> 60 %0 = math.powf %arg0, %c : f32 61 %1 = math.powf %arg1, %v : vector<4xf32> [all …]
|
H A D | ops.mlir | 161 // CHECK-LABEL: func @powf( 163 func.func @powf(%f: f32, %v: vector<4xf32>, %t: tensor<4x4x?xf32>) { 164 // CHECK: %{{.*}} = math.powf %[[F]], %[[F]] : f32 165 %0 = math.powf %f, %f : f32 166 // CHECK: %{{.*}} = math.powf %[[V]], %[[V]] : vector<4xf32> 167 %1 = math.powf %v, %v : vector<4xf32> 168 // CHECK: %{{.*}} = math.powf %[[T]], %[[T]] : tensor<4x4x?xf32> 169 %2 = math.powf %t, %t : tensor<4x4x?xf32> 291 // CHECK: math.powf %[[V]], %[[V]] fastmath<fast> : vector<4xf32> 292 %1 = math.powf %v, %v fastmath<reassoc,nnan,ninf,nsz,arcp,contract,afn> : vector<4xf32>
|
/llvm-project/libc/src/math/nvptx/ |
H A D | powf.cpp | 1 //===-- Implementation of the powf function for GPU -----------------------===// 9 #include "src/math/powf.h" 17 LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) { return __nv_powf(x, y); }
|
/llvm-project/libc/src/math/amdgpu/ |
H A D | powf.cpp | 1 //===-- Implementation of the powf function for GPU -----------------------===// 9 #include "src/math/powf.h" 17 LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
|
/llvm-project/libc/test/src/math/ |
H A D | powf_test.cpp | 1 //===-- Unittests for powf ------------------------------------------------===// 11 #include "src/math/powf.h" 45 LIBC_NAMESPACE::powf(x, y), 0.5); in TEST_F() 82 float result = LIBC_NAMESPACE::powf(x, y); in TEST_F() 108 tlog << " Powf failed: " << fails << "/" << count << "/" << cc in TEST_F()
|
/llvm-project/flang/test/Lower/math-lowering/ |
H A D | exponentiation.f90 | 21 ! FAST: {{%[A-Za-z0-9._]+}} = math.powf {{%[A-Za-z0-9._]+}}, {{%[A-Za-z0-9._]+}} {{.*}}: f32 22 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.powf {{%[A-Za-z0-9._]+}}, {{%[A-Za-z0-9._]+}} {{.*}}: f32 23 ! PRECISE: {{%[A-Za-z0-9._]+}} = fir.call @powf({{%[A-Za-z0-9._]+}}, {{%[A-Za-z0-9._]+}}) {{.*}}: (… 44 ! FAST: {{%[A-Za-z0-9._]+}} = math.powf {{%[A-Za-z0-9._]+}}, {{%[A-Za-z0-9._]+}} {{.*}}: f64 45 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.powf {{%[A-Za-z0-9._]+}}, {{%[A-Za-z0-9._]+}} {{.*}}: f64 55 ! PRECISE-DAG: func.func private @powf(f32, f32) -> f32 attributes {fir.bindc_name = "powf", fir.ru…
|
/llvm-project/mlir/test/Conversion/MathToSPIRV/ |
H A D | math-to-opencl-spirv.mlir | 98 %1 = math.powf %lhs, %rhs : f32 107 %1 = math.powf %lhs, %rhs : vector<4xf32> 157 // CHECK-NEXT: math.powf {{.+}}, {{%.+}} : vector<2x2xf32> 158 %6 = math.powf %arg0, %arg0 : vector<2x2xf32> 179 // CHECK-NEXT: math.powf {{.+}}, {{%.+}} : tensor<2xf32> 180 %6 = math.powf %arg0, %arg0 : tensor<2xf32>
|
/llvm-project/llvm/test/CodeGen/PowerPC/ |
H A D | pow-025-075-intrinsic-scalar-mass-afn.ll | 7 ; afn flag powf with 0.25 35 ; afn flag powf with 0.75 64 ; afn flag powf with 0.50
|
/llvm-project/flang/test/Driver/ |
H A D | fveclib-codegen.f90 | 10 ! check that we used a vectorized call to powf() 12 ! NOLIB: powf
|
/llvm-project/libc/src/math/ |
H A D | powf.h | 1 //===-- Implementation header for powf --------------------------*- C++ -*-===// 16 float powf(float x, float y);
|
/llvm-project/llvm/test/CodeGen/VE/Scalar/ |
H A D | pow.ll | 31 ; CHECK-NEXT: lea %s2, powf@lo 33 ; CHECK-NEXT: lea.sl %s12, powf@hi(, %s2) 111 ; CHECK-NEXT: lea %s0, powf@lo 113 ; CHECK-NEXT: lea.sl %s12, powf@hi(, %s0) 204 ; CHECK-NEXT: lea %s0, powf@lo 206 ; CHECK-NEXT: lea.sl %s12, powf@hi(, %s0)
|