https://bugs.llvm.org/show_bug.cgi?id=52405
Bug ID: 52405
Summary: Integrated assembler allows trailing instruction
prefixes
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: m...@smitop.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
The LLVM integrated assembler incorrectly allows x86 instruction prefixes (like
LOCK) without an actual instruction being prefixed. This should be rejected
since LOCK isn't valid by itself: it's an instruction prefix that needs to be
followed by an actual instruction. For example:
int main() {
__asm__("lock");
}
The result is "Illegal instruction (core dumped)", since LOCK by itself isn't
an instruction. This issue also occurs with (unstable) inline assembly in Rust
(https://github.com/rust-lang/rust/issues/82314).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs