https://bugs.llvm.org/show_bug.cgi?id=48781
Bug ID: 48781
Summary: AsmLexer doesn't understand some escapes (notably '\r'
and '\f')
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
llvm-mc, or also the integrated assembler in clang (which uses the same
parser), doesn't understand the escapes '\r' and '\f'.
Reproducer: `llvm-mc <(echo ".byte '\\r'")`
Expected: `.text .byte 13`
Actual: `.text .byte 114`
After Bug 8615, support was added for basic character escapes, but '\r' and
'\f' were seemlingly forgotten.
By adding those two escapes to llvm-mc, LLVM would achieve feature parity with
GNU as for character constants as described by the `info as` manual.
The relevant code block lives in `./llvm/lib/MC/MCParser/AsmLexer.cpp:566`.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs