[LLVMbugs] [Bug 24319] New: possible lexical analysis or parsing problem with assembly code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 30 11:02:30 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24319
Bug ID: 24319
Summary: possible lexical analysis or parsing problem with
assembly code
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: Wolfgang_Pieb at playstation.sony.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given the following assembly source (assemble with clang –c):
.macro ROUND _of,_sc=1
vpaddd \_of-4(%rdi,%rax,\_sc), %xmm0, %xmm0
.endm
ROUND 16+ 2
ROUND 16 + 2
The 2 resulting instructions are:
0: c5 f9 fe 44 47 0c vpaddd 0xc(%rdi,%rax,2),%xmm0,%xmm0
6: c5 f9 fe 44 07 0e vpaddd 0xe(%rdi,%rax,1),%xmm0,%xmm0
The first macro invocation seems to be interpreted as ROUND(16, 2), indicating
a possible problem with lexical analysis or parsing.
When assembled with gcc, the 2 macro invocations result in the same
instruction, identical to the instruction at offset 6 in the above example.
--
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/20150730/bf0de5fe/attachment.html>
More information about the llvm-bugs
mailing list