diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-18 20:57:32 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-18 20:57:32 +0000 |
commit | 889069443b66c07d698a6813e22d2498a30c749f (patch) | |
tree | 3c2266f780c89ee54a0b09d2df88e51d1a343af6 /test | |
parent | 791ff5af548986d9ba11f6847421c4478a85f4c7 (diff) | |
download | llvm-889069443b66c07d698a6813e22d2498a30c749f.tar.gz llvm-889069443b66c07d698a6813e22d2498a30c749f.tar.bz2 llvm-889069443b66c07d698a6813e22d2498a30c749f.tar.xz |
MC: do not add comment string to the AsmToken in AsmLexer::LexLineComment
Fixes macros with varargs if the macro instantiation has a trailing comment.
Patch by Janne Grunau!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/vararg.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AsmParser/vararg.s b/test/MC/AsmParser/vararg.s index b27668ea33..e3236b072d 100644 --- a/test/MC/AsmParser/vararg.s +++ b/test/MC/AsmParser/vararg.s @@ -17,6 +17,12 @@ .endif .endm +.macro ifcc4 arg0, arg1:vararg +.if cc + movl \arg1, \arg0 +.endif +.endm + .text // CHECK: movl %esp, %ebp @@ -25,6 +31,8 @@ // CHECK: movl %ecx, %ebx // CHECK: movl %ecx, %eax // CHECK: movl %eax, %ecx +// CHECK: movl %ecx, %eax +// CHECK: movl %eax, %ecx .set cc,1 ifcc movl %esp, %ebp subl $0, %esp @@ -33,6 +41,8 @@ ifcc2 %ecx, %ebx ifcc3 %ecx %eax ifcc3 %eax, %ecx + ifcc4 %eax %ecx ## test + ifcc4 %ecx, %eax ## test // CHECK-NOT movl // CHECK: subl $1, %esp |