llvm-6502/test/MC/AsmParser/vararg-default-value.s
Stepan Dyatkovskiy 8c5b3146ed Integrated assbemler, macros: added 'vararg' argument qualifier support.
Note, currently we have no 'vararg' support for darwin macros.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206951 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-23 06:56:28 +00:00

16 lines
227 B
ArmAsm

// RUN: llvm-mc -triple x86_64-linux-gnu %s | FileCheck %s
.macro abc arg:vararg=nop
\arg
.endm
.macro abcd arg0=%eax arg1:vararg=%ebx
movl \arg0, \arg1
.endm
.text
// CHECK: nop
abc
// CHECK: movl %eax, %ebx
abcd ,