[LLVMbugs] [Bug 9142] New: [mc] unknown token "%r14" in movq

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 4 15:49:45 PST 2011


           Summary: [mc] unknown token "%r14" in movq
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu

This one-line assembly file:

  movq         8+(%r14), %mm0

doesn't assemble with llvm-mc:

  $ llvm-mc -assemble x.s -arch=x86_64
          .section        __TEXT,__text,regular,pure_instructions
  x.s:1:17: error: unknown token in expression
  movq         8+(%r14), %mm0

but GAS accepts it, if noisily:

  nlewycky at ducttape:~$ as x.s -o x.o
  x.s: Assembler messages:
  x.s:1: Warning: missing operand; zero assumed
  nlewycky at ducttape:~$ objdump -d x.o

  x.o:     file format elf64-x86-64

  Disassembly of section .text:

  0000000000000000 <.text>:
     0:   41 0f 6f 46 08          movq   0x8(%r14),%mm0

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list