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

X | Y s>= 0 implies ssub(X, Y) no overflow #83

Open
dtcxzyw opened this issue Dec 9, 2024 · 0 comments
Open

X | Y s>= 0 implies ssub(X, Y) no overflow #83

dtcxzyw opened this issue Dec 9, 2024 · 0 comments

Comments

@dtcxzyw
Copy link
Owner

dtcxzyw commented Dec 9, 2024

https://alive2.llvm.org/ce/z/uWX3uv

define i1 @src5(i64 noundef %0, i64 noundef %1) {
entry:
  %3 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %1, i64 %0)
  %4 = extractvalue { i64, i1 } %3, 1
  %5 = or i64 %1, %0
  %6 = icmp sgt i64 %5, -1
  tail call void @llvm.assume(i1 %6)
  ret i1 %4
}
define i1 @tgt5(i64 %0, i64 %1) {
entry:
  ret i1 false
}

tests/image-rs/optimized/2ndzmzcdt55acj4k.ll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant