Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement llvm.*.sat.* intrinsics #210

Merged
merged 3 commits into from
Oct 16, 2024
Merged

Implement llvm.*.sat.* intrinsics #210

merged 3 commits into from
Oct 16, 2024

Conversation

zlfn
Copy link
Contributor

@zlfn zlfn commented Oct 16, 2024

resolved: #207

  • llvm.sadd.sat.*
  • llvm.uadd.sat.*
  • llvm.ssub.sat.*
  • llvm.usub.sat.*
  • llvm.sshl.sat.*
  • llvm.ushl.sat.*

LLVM-IR reference says the result of llvm.sshl.sat.* and llvm.ushl.sat.* should be poison value when b equal or greater than bit width of the arguments.

However, llvm-cbe does not support freeze, so that part is not implemented.

zlfn added 2 commits October 16, 2024 20:58
`llvm.uadd.sat`, `llvm.sadd.sat`, `llvm.usub.sat`, `llvm.ssub.sat`,
`llvm.sshl.sat`, `llvm.ushl.sat`
+ fix indenting mistake
@zlfn
Copy link
Contributor Author

zlfn commented Oct 16, 2024

It looks like the C compiler version of the CI system is wrong
or disjoint is introduced in LLVM-18

@vtjnash vtjnash merged commit f3ee6e3 into JuliaHubOSS:master Oct 16, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for the Saturation Arithmetic Intrinsics (llvm.uadd.sat.* and others)
2 participants