Skip to content

min-LLVM: Can only use x86 asm ATT syntax for LLVM < 10 in new asm! #76738

Closed
@tesuji

Description

@tesuji

This is a tracking issue to remind when using asm! macro in Rust repo and its direct dependencies
like stdarch, we can only use x86 ATT syntax for LLVM < 10. That's because older LLVM versions
don't support operand modifiers in intel syntax. Although as long as we stick to AT&T syntax
and stick to general-purpose registers it should be fine.

@rustbot modify labels: A-LLVM F-asm T-compiler requires-nightly O-x86

Some related discussions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.F-asm`#![feature(asm)]` (not `llvm_asm`)O-x86_32Target: x86 processors, 32 bit (like i686-*) (IA-32)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions