[PATCH] D138535: [AVR] Add $ separator string (like avr-gcc)
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 27 06:31:37 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b2b83ce2f6b: [AVR] Add $ separator string (like avr-gcc) (authored by aykevl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138535/new/
https://reviews.llvm.org/D138535
Files:
llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
llvm/test/MC/AVR/separator.s
Index: llvm/test/MC/AVR/separator.s
===================================================================
--- /dev/null
+++ llvm/test/MC/AVR/separator.s
@@ -0,0 +1,11 @@
+; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck %s
+
+foo:
+
+ ; The $ symbol is a separator (like a newline).
+ mov r0, r1 $ mov r1, r2 $ mov r2, r3 $ mov r3, r4
+
+; CHECK: mov r0, r1
+; CHECK: mov r1, r2
+; CHECK: mov r2, r3
+; CHECK: mov r3, r4
Index: llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
===================================================================
--- llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
+++ llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
@@ -20,6 +20,7 @@
CodePointerSize = 2;
CalleeSaveStackSlotSize = 2;
CommentString = ";";
+ SeparatorString = "$";
PrivateGlobalPrefix = ".L";
PrivateLabelPrefix = ".L";
UsesELFSectionDirectiveForBSS = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138535.478093.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221127/d32a0d2f/attachment.bin>
More information about the llvm-commits
mailing list