[llvm-bugs] [Bug 39000] New: x86 integrated assembler: & separator not functional in .altmacro mode in some cases
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 19 09:06:20 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39000
Bug ID: 39000
Summary: x86 integrated assembler: & separator not functional
in .altmacro mode in some cases
Product: new-bugs
Version: 6.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: emaste at freebsd.org
CC: llvm-bugs at lists.llvm.org
Blocks: 33405
Found while trying to build the FreeBSD base system entirely with the
integrated assembler.
"In the alternative macro syntax mode the ampersand character (‘&’) can be used
as a separator."
Consider the following snippet:
-------------------------
.altmacro
v_0_0 = 255
.macro w v1,v2
_c_ = v_\v1&_\v2
.word _c_
.endm
w 0 0
-------------------------
GNU as and gcc assemble this by evaluating _c_ = v_0_0, producing .word 255.
Clang IAS produces:
<instantiation>:1:10: error: expression could not be evaluated
_c_ = v_0&_0
^
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=33405
[Bug 33405] [meta] Using the integrated assembler to build the FreeBSD base
system (kernel + world)
--
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/20180919/65e6ddfc/attachment.html>
More information about the llvm-bugs
mailing list