[MSP430] Recognize '{' as a line separator

msp430-as supports multiple assembly statements on the same line
separated by a '{' character.

llvm-svn: 351233
This commit is contained in:
Anton Korobeynikov 2019-01-15 20:10:46 +00:00
parent 3bbdd87c88
commit c9e9e28487
2 changed files with 16 additions and 0 deletions

View File

@ -20,6 +20,7 @@ MSP430MCAsmInfo::MSP430MCAsmInfo(const Triple &TT) {
CodePointerSize = CalleeSaveStackSlotSize = 2; CodePointerSize = CalleeSaveStackSlotSize = 2;
CommentString = ";"; CommentString = ";";
SeparatorString = "{";
AlignmentIsInBytes = false; AlignmentIsInBytes = false;
UsesELFSectionDirectiveForBSS = true; UsesELFSectionDirectiveForBSS = true;

View File

@ -0,0 +1,15 @@
; RUN: llvm-mc -triple msp430 < %s | FileCheck %s
; MSP430 supports multiple assembly statements on the same line
; separated by a '{' character.
; Check that the '{' is recognized as a line separator and
; multiple statements correctly parsed.
_foo:
; CHECK: foo
; CHECK: add r10, r11
; CHECK-NEXT: call r11
; CHECK-NEXT: mov r11, 2(r1)
add r10, r11 { call r11 { mov r11, 2(r1)
ret