diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-23 15:53:36 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-23 15:53:36 +0000 |
commit | 0922e5b6430a566ed9f6d814902065352126faa5 (patch) | |
tree | b5b1aaac738c0abb335a917744276039ee114309 /test | |
parent | a0d16299c958cde0802d84144c9b1bc524da4f79 (diff) | |
download | llvm-0922e5b6430a566ed9f6d814902065352126faa5.tar.gz llvm-0922e5b6430a566ed9f6d814902065352126faa5.tar.bz2 llvm-0922e5b6430a566ed9f6d814902065352126faa5.tar.xz |
MCAsmParser: handle space properly for .ifc/.ifnc
If the strings are not quoted, the first string stops at the first comma, and
the second string stops at the end of the line. Strings which contain
whitespace should be quoted. Unquoted space is to be discarded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/ifc.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/AsmParser/ifc.s b/test/MC/AsmParser/ifc.s index 20e55c0a24..24944a21e4 100644 --- a/test/MC/AsmParser/ifc.s +++ b/test/MC/AsmParser/ifc.s @@ -63,3 +63,8 @@ .else .byte 0 .endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnc equal, equal ; .byte 0 ; .else ; .byte 1 ; .endif + |