[llvm-bugs] [Bug 37425] New: unable to use variable assignment in integrated assembler

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 11 13:17:18 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: isanbard at gmail.com, jyknight at google.com,
                    llvm-bugs at lists.llvm.org, niravd at google.com,
                    pirama at google.com, srhines at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180511/0a32ab42/attachment.html>


More information about the llvm-bugs mailing list