[llvm-bugs] [Bug 28921] New: Assembly parser breaks on certain comments

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 10 06:03:02 PDT 2016


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

            Bug ID: 28921
           Summary: Assembly parser breaks on certain comments
           Product: new-bugs
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tim.besard at elis.ugent.be
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

As of the assembly parser refactor in r27300 (D20009), clang doesn't parse the
following assembly file anymore:


##
#ifndef TRMMKERNEL
vaddpd 4, %xmm9, %xmm9;
vaddpd 6, %xmm8, %xmm8;
vaddpd 0, %xmm15, %xmm15;
vaddpd 2, %xmm14, %xmm14;
vaddpd 4, %xmm13, %xmm13;
vaddpd 6, %xmm12, %xmm12;
#endif
##


Bisected on the llvm-project repository, release build using CMake 3.6.1 +
Ninja on Debian Jessie if that would matter.


$ clang --version
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang -DTRMMKERNEL -c kernel.S
$ echo $?
0


$ clang-3.9 --version
clang version 3.9.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang-3.9 -DTRMMKERNEL -c kernel.S
kernel.S:1:1: error: unexpected token at start of statement
##
^


This is a test case reduced from a failure to compile OpenBLAS, as reported
here: https://github.com/xianyi/OpenBLAS/issues/942
Using `-no-integrated-as` obviously bypasses the problem.

Some other occurrences of this bug, eg.
http://forum.xda-developers.com/showpost.php?p=67696651&postcount=170

-- 
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/20160810/ea7930a2/attachment-0001.html>


More information about the llvm-bugs mailing list