diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-05 02:43:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-05 02:43:45 +0000 |
commit | 653664471333f316020e96dd3d664f4984f66a65 (patch) | |
tree | be9938f3cb386bd0fdc050dbedf814233e1ad5a0 /test/MC | |
parent | 378e0ecf24cd980a4551299f0bd90725b479b401 (diff) |
Basic support for macros with explicit arguments.
We still don't handle
* default values
* :req
* :vararg
* \()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/macro-args.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AsmParser/macro-args.s b/test/MC/AsmParser/macro-args.s new file mode 100644 index 0000000000..808b6eb488 --- /dev/null +++ b/test/MC/AsmParser/macro-args.s @@ -0,0 +1,10 @@ +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s | FileCheck %s + +.macro GET var,re2g + movl \var@GOTOFF(%ebx),\re2g +.endm + + +GET is_sse, %eax + +// CHECK: movl is_sse@GOTOFF(%ebx), %eax |