-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
xabort incorrect argument #73814
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
godbolt link, you need to pass platform features.
I expected to see this happen:
Either a clean compile, or a type error that
u8was expected instead ofi8.Instead, this happened:
The current code states that
_xaborttakes au32as an argument. This appears to be incorrect.As the
xabortinstruction can only encode an 8bit argument.The
xbegininstruction will only encode the abort flag within bits24:31ofeax. Meaning that you can't recieve an error code larger than 8bits.Meta
rustc --version --verbose: