[x86] dollar-signs in identifiers in assembly not protected #1711
Labels
backend:X86
bugzilla
Issues migrated from bugzilla
compile-fail
Use [accepts-invalid] and [rejects-valid] instead
Extended Description
In this testcase:
declare void @"$foo"()
define void @bar() {
call void @"$foo"()
ret void
}
For x86, llvm emits the following:
call $foo
With GAS, this gets an error:
test.s:9: Error: suffix or operands invalid for `call'
This can be fixed by enclosing the name in parentheses, like this:
call ($foo)
The text was updated successfully, but these errors were encountered: