-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
Description
The below code:
define void @demo() {
start:
call void asm inteldialect "0: jmp 0b", ""()
ret void
}
Should build. Instead, it provides an inaccurate error message:
<inline asm>:2:5: error: invalid operand for instruction
0: jmp 0b
^
Compiler returned: 1
This only happens on x86
and x86_64
, other platforms seem not to be affected. This looks like another case of #35492, cc @rnk who authored 953bdce.
Link: https://llvm.godbolt.org/z/WWvWMzznK
Original repro: https://rust.godbolt.org/z/qP3Kd3Ts7
Dan0xE
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
tgross35 commentedon Jul 18, 2024
This reproduces in clang too with
-masm=intel
https://llvm.godbolt.org/z/5Gz6hnqxsbinary_asm_labels
once the LLVM issue is fixed rust-lang/rust#127937llvmbot commentedon Jul 19, 2024
@llvm/issue-subscribers-backend-x86
Author: Trevor Gross (tgross35)
Should build. Instead, it provides an inaccurate error message:
This only happens on
x86
andx86_64
, other platforms seem not to be affected. This looks like another case of #35492, cc @rnk who authored 953bdce.Link: https://llvm.godbolt.org/z/WWvWMzznK
Original repro: https://rust.godbolt.org/z/qP3Kd3Ts7
Patch usr_ptr for llvm/llvm-project#99547
Patch for llvm/llvm-project#99547
- added a custom Dockerfile for building the synthetic-network, since…
encapfn-mpk: avoid using asm labels with only 0 or 1