Commit 2da0a54
authored
Long Vector Execution Tests: Merge unary and binary op tests to main (microsoft#7549)
**Summary**
Adds infrastructure for long vector execution tests. This code and
additional test cases were already added to the staging-sm6.9 branch.
This is the second of several PRs to bring these changes into main. That
being said, reviews of this code should treat it as brand new. Resolves
microsoft#7545
**Includes:**
- A new test class `LongVector::OpTest` in `LongVectors.h/cpp`, still
part of the `ExecHLSLTests.dll` binary.
- HLSL source added to `ShaderOpArith.xml` to leverage the existing exec
test framework for shader compilation and execution.
- A new TAEF metadata file `LongVectorOpTable.xml` defining long vector
test cases.
- `LongVectorTestData.h` for statically defined input values, including
`HLSLHalf_t` and `HLSLBool_t`. This avoids duplicating values across
test cases.
**Template Handling**
To support template instantiation across translation units,
`LongVectors.tpp` contains full template definitions included by
`LongVectors.h`. These were originally required when tests lived in
`ExecutionTests.cpp`. Now that the tests are isolated, the plan is to
move the definitions back into `LongVectors.cpp` after merging the long
vector tests from `staging-sm6.9` to simplify the manual merge.
**Utilities**
`HlslTestUtils.h` includes minor updates to support the new test
scenarios.1 parent 7e0d771 commit 2da0a54
File tree
9 files changed
+1819
-10
lines changed- include/dxc/Test
- tools/clang/unittests/HLSLExec
9 files changed
+1819
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
263 | 286 | | |
264 | 287 | | |
265 | 288 | | |
| |||
461 | 484 | | |
462 | 485 | | |
463 | 486 | | |
464 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
465 | 490 | | |
466 | 491 | | |
467 | 492 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
473 | 498 | | |
474 | 499 | | |
475 | 500 | | |
| |||
517 | 542 | | |
518 | 543 | | |
519 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
520 | 583 | | |
521 | 584 | | |
522 | 585 | | |
| |||
568 | 631 | | |
569 | 632 | | |
570 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
571 | 637 | | |
572 | 638 | | |
573 | | - | |
574 | | - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
575 | 650 | | |
576 | | - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
577 | 654 | | |
578 | 655 | | |
579 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments