[LLVMbugs] [Bug 1339] NEW: dollar-signs in identifiers in assembly not protected

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Apr 17 11:43:06 PDT 2007


           Summary: dollar-signs in identifiers in assembly not protected
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: djg at cray.com

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)

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list