Inline assembler with jmp + "m" will emit wrong code #3609
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
bug
Observed behavior contradicts documented or intended behavior
miscompilation
The compiler reports success but produces semantically incorrect code.
Milestone
this code will emit
jmp -4(%rbp)
which seems to be a stack reference instead of a ref to the global symbol. Usingasm volatile("jmp symbol")
will work.Zig Version: 0.5.0+55685ae78
Related: #3606
The text was updated successfully, but these errors were encountered: