-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Zero-extended i1 value becomes 255 at -O2 on x86_64 #56585
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
Comments
@llvm/issue-subscribers-backend-x86 |
@llvm/issue-subscribers-bug |
Looks like this is already fixed on trunk: https://godbolt.org/z/Ehbxz7471 It would be good to know what change includes the fix, if possible |
This is a possible workaround for llvm/llvm-project#56585 On my computer it makes stage3-release go from false positive compilation errors on the behavior tests to "segmentation fault". Is this forwards progress or backwards progress? I have no idea. See #11450
This is a workaround for llvm/llvm-project#56585 which causes writes to i1 in memory to be optimized to an incorrect value. Unfortunately, this does not save users from running into this bug with u1 in their own types. However, this does seem to be enough to get the behavior tests working. This resolves ziglang#11450 on my machine.
This was probably fixed by 930a687. |
This is a workaround for llvm/llvm-project#56585 which causes writes to i1 in memory to be optimized to an incorrect value. Unfortunately, this does not save users from running into this bug with u1 in their own types. However, this does seem to be enough to get the behavior tests working. This resolves #11450 on my machine.
Indeed, applying that fix locally resolves this bug for me. Thank you! |
This is a possible workaround for llvm/llvm-project#56585 On my computer it makes stage3-release go from false positive compilation errors on the behavior tests to "segmentation fault". Is this forwards progress or backwards progress? I have no idea. See #11450
This is a workaround for llvm/llvm-project#56585 which causes writes to i1 in memory to be optimized to an incorrect value. Unfortunately, this does not save users from running into this bug with u1 in their own types. However, this does seem to be enough to get the behavior tests working. This resolves #11450 on my machine.
This is a possible workaround for llvm/llvm-project#56585 On my computer it makes stage3-release go from false positive compilation errors on the behavior tests to "segmentation fault". Is this forwards progress or backwards progress? I have no idea. See #11450
This is a workaround for llvm/llvm-project#56585 which causes writes to i1 in memory to be optimized to an incorrect value. Unfortunately, this does not save users from running into this bug with u1 in their own types. However, this does seem to be enough to get the behavior tests working. This resolves ziglang#11450 on my machine.
This is a possible workaround for llvm/llvm-project#56585 On my computer it makes stage3-release go from false positive compilation errors on the behavior tests to "segmentation fault". Is this forwards progress or backwards progress? I have no idea. See ziglang#11450
930a687#diff-06e121216084579cd62acf88c315555529dc0dbfbeba81787c70ab7e606bdb21L507-R508 HOW???? EDIT 1 EDIT 2 |
Uh oh!
There was an error while loading. Please reload this page.
With LLVM 14.0.5, this program gives a correct result at
-O0
, but at-O1
the zero-extendedi1
value is 255:Does not reproduce with LLVM 13.0.1:
The text was updated successfully, but these errors were encountered: