Skip to content

Conversation

@MaxGraey
Copy link
Contributor

@MaxGraey MaxGraey commented Oct 27, 2021

It's continue of #4272

(signed)x  < s_min + 1   ==>   x == s_min
(signed)x >= s_min + 1   ==>   x != s_min
(signed)x  > s_max - 1   ==>   x == s_max
(signed)x <= s_max - 1   ==>   x != s_max

(unsigned)x <= u_max - 1   ==>   x != u_max
(unsigned)x  > u_max - 1   ==>   x == u_max

@MaxGraey
Copy link
Contributor Author

Fuzzed ITERATION: 14043

@MaxGraey
Copy link
Contributor Author

@kripken @tlively Could you take a look to this please?

@MaxGraey
Copy link
Contributor Author

@tlively Could you take a little look at this old PR please?

Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with that one comment.

@tlively tlively merged commit d5b6972 into WebAssembly:main Aug 27, 2022
@MaxGraey MaxGraey deleted the more-relational-cannon branch August 27, 2022 03:52
@MaxGraey
Copy link
Contributor Author

@tlively Thanks!

(local.get $y)
(i64.const 9223372036854775806)
))
;; (unsigned)x <= u_max - 1 ==> x == u_max
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text here is wrong, == should be != (but the optimizer output is right).

Same in the comment below, != should be ==.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good catch. Do you want a separate PR which fix this comment or just append this minor fix with some other existing PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A separate PR might be simplest. I am not up to date on the other PRs and am not sure when they will land. A separate PR can be landed immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kripken pushed a commit that referenced this pull request Aug 30, 2022
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.

3 participants