http://llvm.org/bugs/show_bug.cgi?id=9142

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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@ducttape:~$ as x.s -o x.o
  x.s: Assembler messages:
  x.s:1: Warning: missing operand; zero assumed
  nlewycky@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to