[llvm-bugs] [Bug 41825] New: Macro expansion fails with "expected absolute expression"
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 10 01:00:42 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41825
Bug ID: 41825
Summary: Macro expansion fails with "expected absolute
expression"
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: isanbard at gmail.com
CC: llvm-bugs at lists.llvm.org
This is seen when compiling Linux with the integrated assembler. It was first
seen in AArch64, but isn't specific to that platform.
$ cat bad.s
.macro jump_slot jumptable, index, label
.if (. - \jumptable) != 4 * (\index)
.error "Jump slot index mismatch"
.endif
b \label
.endm
.text
jumptable:
jump_slot jumptable, 0, realtime
$ clang -cc1as -triple aarch64-grtev4-linux-gnu -target-cpu generic
-target-feature +neon -mrelocation-model static -o /dev/null bad.s
<instantiation>:1:5: error: expected absolute expression
.if (. - jumptable) != 4 * (0)
^
bad.s:10:3: note: while in macro instantiation
jump_slot jumptable, 0, realtime
^
<instantiation>:2:1: error: Jump slot index mismatch
.error "Jump slot index mismatch"
^
bad.s:10:3: note: while in macro instantiation
jump_slot jumptable, 0, realtime
^
--
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/20190510/6f497efd/attachment-0001.html>
More information about the llvm-bugs
mailing list