diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp @@ -20,6 +20,7 @@ CodePointerSize = 2; CalleeSaveStackSlotSize = 2; CommentString = ";"; + SeparatorString = "$"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L"; UsesELFSectionDirectiveForBSS = true; diff --git a/llvm/test/MC/AVR/separator.s b/llvm/test/MC/AVR/separator.s new file mode 100644 --- /dev/null +++ b/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