Skip to content

Commit 0495fd5

Browse files
committed
adding test
1 parent b8585b8 commit 0495fd5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

tools/clang/unittests/HLSLExec/LongVectorOps.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ OP_DEFAULT(Binary, Logical_Or, 2, "or", ",")
137137
OP(Ternary, Select, 3, "TestSelect", "", " -DFUNC_TEST_SELECT=1",
138138
"LongVectorOp", SelectCond, Default2, Default3)
139139

140-
141-
OP_DEFAULT(BooleanFloat, IsFinite, 1, "", "")
140+
OP(Ternary, IsFinite, 1, "TestIsFinite", "", " -DFUNC_TEST_ISFINITE=1",
141+
"LongVectorOp", Default1, Default2, Default3)
142142

143143

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

tools/clang/unittests/HLSLExec/LongVectorTestData.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ 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, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
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,
355356
-1.0);
356357
INPUT_SET(InputSet::Default2, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
357358
-1.0);

0 commit comments

Comments
 (0)