We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0495fd5 commit 271cb0aCopy full SHA for 271cb0a
2 files changed
tools/clang/unittests/HLSLExec/LongVectorOps.def
@@ -18,6 +18,7 @@ INPUT_SET(NoZero)
18
INPUT_SET(Positive)
19
INPUT_SET(Bitwise)
20
INPUT_SET(SelectCond)
21
+INPUT_SET(Infinite)
22
23
#undef INPUT_SET
24
@@ -137,8 +138,8 @@ OP_DEFAULT(Binary, Logical_Or, 2, "or", ",")
137
138
OP(Ternary, Select, 3, "TestSelect", "", " -DFUNC_TEST_SELECT=1",
139
"LongVectorOp", SelectCond, Default2, Default3)
140
-OP(Ternary, IsFinite, 1, "TestIsFinite", "", " -DFUNC_TEST_ISFINITE=1",
141
- "LongVectorOp", Default1, Default2, Default3)
+OP(Unary, IsFinite, 1, "TestIsFinite", "", " -DFUNC_TEST_ISFINITE=1",
142
+ "LongVectorOp", Default1, Default2, Infinite)
143
144
145
// For the 'any' and 'all' reduction operation, we test with three different
tools/clang/unittests/HLSLExec/LongVectorTestData.h
@@ -351,8 +351,7 @@ INPUT_SET(InputSet::SelectCond, 0.0, 1.0);
351
END_INPUT_SETS()
352
353
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,
+INPUT_SET(InputSet::Default1, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
356
-1.0);
357
INPUT_SET(InputSet::Default2, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
358
@@ -365,6 +364,8 @@ INPUT_SET(InputSet::RangeOne, 0.727f, 0.331f, -0.957f, 0.677f, -0.025f, 0.495f,
365
364
INPUT_SET(InputSet::Positive, 1.0f, 1.0f, 65535.0f, 0.01f, 5531.0f, 0.01f, 1.0f,
366
0.01f, 331.2330f, 3250.01f);
367
INPUT_SET(InputSet::SelectCond, 0.0f, 1.0f);
+INPUT_SET(InputSet::Infinite,
368
+ std::numeric_limits<float>::infinity(), -std::numeric_limits<float>::infinity(), 32);
369
370
371
BEGIN_INPUT_SETS(double)
0 commit comments