https://bugs.llvm.org/show_bug.cgi?id=37425

            Bug ID: 37425
           Summary: unable to use variable assignment in integrated
                    assembler
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: isanb...@gmail.com, jykni...@google.com,
                    llvm-bugs@lists.llvm.org, nir...@google.com,
                    pir...@google.com, srhi...@google.com
            Blocks: 4068

Created attachment 20296
  --> https://bugs.llvm.org/attachment.cgi?id=20296&action=edit
test.S

$ cat test.S 
var_xdata = %rcx

xorq var_xdata, var_xdata

$ gcc -c test.S
$ objdump -D test.o

test.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   48 31 c9                xor    %rcx,%rcx


$ clang -c test.S  
test.S:1:13: error: unknown token in expression
var_xdata = %rcx
            ^
test.S:1:13: error: missing expression
var_xdata = %rcx
            ^
test.S:3:17: error: invalid operand for instruction
xorq var_xdata, var_xdata
^

This is visible while trying to use llvm's integrated assembler to assemble the
linux kernel, particularly:

arch/x86/crypto/aes_ctrby8_avx-x86_64.S
arch/x86/crypto/aesni-intel_avx-x86_64.S


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to