Skip to content

Commit ded6916

Browse files
Fix pluralization of 'exponent'
1 parent 67e258a commit ded6916

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

offload/unittests/Conformance/tests/PowfTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static inline float powfRoundedExponent(float Base, float Exponent) {
3030
namespace mathtest {
3131

3232
template <> struct FunctionConfig<powf> {
33-
static constexpr llvm::StringRef Name = "powf (real exponent)";
33+
static constexpr llvm::StringRef Name = "powf (real exponents)";
3434
static constexpr llvm::StringRef KernelName = "powfKernel";
3535

3636
// Source: The Khronos Group, The OpenCL C Specification v3.0.19, Sec. 7.4,
@@ -39,7 +39,7 @@ template <> struct FunctionConfig<powf> {
3939
};
4040

4141
template <> struct FunctionConfig<powfRoundedExponent> {
42-
static constexpr llvm::StringRef Name = "powf (integer exponent)";
42+
static constexpr llvm::StringRef Name = "powf (integer exponents)";
4343
static constexpr llvm::StringRef KernelName = "powfRoundedExponentKernel";
4444

4545
// Source: The Khronos Group, The OpenCL C Specification v3.0.19, Sec. 7.4,
@@ -64,11 +64,11 @@ int main(int argc, const char **argv) {
6464
const llvm::StringRef DeviceBinaryDir = DEVICE_BINARY_DIR;
6565
const bool IsVerbose = cl::IsVerbose;
6666

67-
bool RealExponentPassed =
67+
bool RealExponentsPassed =
6868
runTests<powf>(Generator0, Configs, DeviceBinaryDir, IsVerbose);
69-
bool IntegerExponentPassed = runTests<powfRoundedExponent>(
69+
bool IntegerExponentsPassed = runTests<powfRoundedExponent>(
7070
Generator1, Configs, DeviceBinaryDir, IsVerbose);
7171

72-
return (RealExponentPassed && IntegerExponentPassed) ? EXIT_SUCCESS
73-
: EXIT_FAILURE;
72+
return (RealExponentsPassed && IntegerExponentsPassed) ? EXIT_SUCCESS
73+
: EXIT_FAILURE;
7474
}

0 commit comments

Comments
 (0)