These intrinsics and the corresponding ISD nodes were recently added. PPC has instructions that do this for vectors. Legalize them and add patterns to emit the satuarting instructions.
Details
Details
- Reviewers
hfinkel lkail - Group Reviewers
Restricted Project - Commits
- rG9c64f04df8ec: [PowerPC] Legalize saturating vector add/sub
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with one nit.
| llvm/lib/Target/PowerPC/PPCInstrAltivec.td | ||
|---|---|---|
| 871 | Add // Saturates. before this line to separate following instructions from other classes of instructions? | |
| llvm/lib/Target/PowerPC/PPCInstrAltivec.td | ||
|---|---|---|
| 871 | Sounds good. | |
Add // Saturates. before this line to separate following instructions from other classes of instructions?