Commit ebda353
committed
[AMDGPU] Support bfloat comparison for ballot intrinsic (llvm#165495)
We do not have native instructions for direct bfloat comparisons.
However, we can expand bfloat to float, and do float comparison instead.
TODO: handle bfloat comparison for ballot intrinsic on global isel path.
Fixes: SWDEV-5634031 parent 94f12a2 commit ebda353
File tree
3 files changed
+41
-2
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
3 files changed
+41
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6430 | 6430 | | |
6431 | 6431 | | |
6432 | 6432 | | |
| 6433 | + | |
| 6434 | + | |
| 6435 | + | |
| 6436 | + | |
| 6437 | + | |
| 6438 | + | |
| 6439 | + | |
6433 | 6440 | | |
6434 | | - | |
6435 | | - | |
| 6441 | + | |
6436 | 6442 | | |
6437 | 6443 | | |
6438 | 6444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
0 commit comments