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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs