Skip to content

Support pointer valued inline asm const operands - #1681

Merged
bjorn3 merged 1 commit into
rust-lang:mainfrom
amirHdev:fix-asm-const-pointer
Jul 27, 2026
Merged

Support pointer valued inline asm const operands#1681
bjorn3 merged 1 commit into
rust-lang:mainfrom
amirHdev:fix-asm-const-pointer

Conversation

@amirHdev

Copy link
Copy Markdown
Contributor

Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
rm -r tests/run-make/panic-abort-eh_frame # .eh_frame emitted with panic=abort
rm -r tests/run-make/used-proc-macro # doesn't work on arm64 for some reason
rm tests/ui/asm/asm-const-ptr-mir-inline.rs # const sym in inline asm gives ICE
rm tests/ui/asm/const-refs-to-static.rs # same

@bjorn3 bjorn3 Jul 27, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CI doesn't run this for PRs, but I've locally verified that these tests are indeed fixed.

View changes since the review

@bjorn3

bjorn3 commented Jul 27, 2026

Copy link
Copy Markdown
Member

Thanks for fixing this!

@bjorn3
bjorn3 merged commit 10e662e into rust-lang:main Jul 27, 2026
24 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.

[ICE]: cranelift: got a pointer where a ScalarInt was expected: alloc1

2 participants