Commit 99403ba
authored
Add intrinsics for the new FP conversions introduced by the 2024 dpISA (#407)
FEAT_FPRCVT adds 4 new variants for each FCVTAS, FCVTAU, FCVTMS, FCVTMU,
FCVTNS, FCVTNU, FCVTPS, FCVTPU, FCVTZS, and FCVTZU instruction.
1) Half Precision to 32-bit
2) Half Precision to 64-bit
3) Single Precision to 64-bit
4) Double Precision to 32-bit
For the Single Precision to 64-bit and Double Precision to 32-bit
variants, this patch adds two new intrinsics, that reduce to
- Single Precision to 64-bit : <INST> Dd,Sn
- Double Precision to 32-bit : <INST> Sd,Dn
The intrinsics for conversions from Half Precision are already defined.
However they are documented as reducing to the incorrect instruction
format; <INST> Hd,Hn, so this patch fixes them to be
- Half Precision to 32-bit : <INST> Sd,Hn
- Half Precision to 64-bit : <INST> Dd,Hn1 parent 422fee6 commit 99403ba
5 files changed
Lines changed: 158 additions & 75 deletions
File tree
- main
- neon_intrinsics
- tools/intrinsic_db
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| 486 | + | |
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
| |||
2248 | 2249 | | |
2249 | 2250 | | |
2250 | 2251 | | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
2251 | 2259 | | |
2252 | 2260 | | |
2253 | 2261 | | |
| |||
2651 | 2659 | | |
2652 | 2660 | | |
2653 | 2661 | | |
| 2662 | + | |
2654 | 2663 | | |
2655 | 2664 | | |
2656 | 2665 | | |
| |||
0 commit comments