Skip to content

Commit 271cb0a

Browse files
committed
fix
1 parent 0495fd5 commit 271cb0a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

tools/clang/unittests/HLSLExec/LongVectorOps.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ INPUT_SET(NoZero)
1818
INPUT_SET(Positive)
1919
INPUT_SET(Bitwise)
2020
INPUT_SET(SelectCond)
21+
INPUT_SET(Infinite)
2122

2223
#undef INPUT_SET
2324

@@ -137,8 +138,8 @@ OP_DEFAULT(Binary, Logical_Or, 2, "or", ",")
137138
OP(Ternary, Select, 3, "TestSelect", "", " -DFUNC_TEST_SELECT=1",
138139
"LongVectorOp", SelectCond, Default2, Default3)
139140

140-
OP(Ternary, IsFinite, 1, "TestIsFinite", "", " -DFUNC_TEST_ISFINITE=1",
141-
"LongVectorOp", Default1, Default2, Default3)
141+
OP(Unary, IsFinite, 1, "TestIsFinite", "", " -DFUNC_TEST_ISFINITE=1",
142+
"LongVectorOp", Default1, Default2, Infinite)
142143

143144

144145
// For the 'any' and 'all' reduction operation, we test with three different

tools/clang/unittests/HLSLExec/LongVectorTestData.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ INPUT_SET(InputSet::SelectCond, 0.0, 1.0);
351351
END_INPUT_SETS()
352352

353353
BEGIN_INPUT_SETS(float)
354-
INPUT_SET(InputSet::Default1, 1.0, -1.0, 1.0,
355-
std::numeric_limits<float>::infinity(), 1.0, -1.0, 1.0, -1.0, 1.0,
354+
INPUT_SET(InputSet::Default1, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
356355
-1.0);
357356
INPUT_SET(InputSet::Default2, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
358357
-1.0);
@@ -365,6 +364,8 @@ INPUT_SET(InputSet::RangeOne, 0.727f, 0.331f, -0.957f, 0.677f, -0.025f, 0.495f,
365364
INPUT_SET(InputSet::Positive, 1.0f, 1.0f, 65535.0f, 0.01f, 5531.0f, 0.01f, 1.0f,
366365
0.01f, 331.2330f, 3250.01f);
367366
INPUT_SET(InputSet::SelectCond, 0.0f, 1.0f);
367+
INPUT_SET(InputSet::Infinite,
368+
std::numeric_limits<float>::infinity(), -std::numeric_limits<float>::infinity(), 32);
368369
END_INPUT_SETS()
369370

370371
BEGIN_INPUT_SETS(double)

0 commit comments

Comments
 (0)