Commit 1fdbe69
authored
[NVPTX] support f32x2 instructions for sm_100+ (#126337)
Lower `fadd`, `fsub`, `fmul`, and `fma` to f32x2 variants introduced in
PTX 8.6 for sm_100+. Adds a new register class for v2f32 as a b64
register in PTX. This causes other vector operations like loads and
stores to lower as .b64 instead of .v2.b32 as appropriate.
Also update test cases to use the autogenerator.1 parent 0a34309 commit 1fdbe69
File tree
27 files changed
+3544
-1125
lines changed- llvm
- lib/Target/NVPTX
- test/CodeGen/NVPTX
27 files changed
+3544
-1125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | 449 | | |
452 | | - | |
| 450 | + | |
453 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
454 | 461 | | |
455 | 462 | | |
456 | 463 | | |
| |||
474 | 481 | | |
475 | 482 | | |
476 | 483 | | |
477 | | - | |
478 | | - | |
| 484 | + | |
| 485 | + | |
479 | 486 | | |
480 | 487 | | |
481 | | - | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
| |||
994 | 1001 | | |
995 | 1002 | | |
996 | 1003 | | |
| 1004 | + | |
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
| |||
0 commit comments