diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-15 14:02:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-15 14:02:34 +0000 |
commit | aa7a2f2ba308656e206338fe65c422e0b6781c64 (patch) | |
tree | 0decf31bedfca33830c0e407a416c7610617ada8 /test/MC/AsmParser/macro-irp.s | |
parent | 6207cb519bbe9ce31eaef9a835fe6bd57dbf0d0f (diff) | |
download | external_llvm-aa7a2f2ba308656e206338fe65c422e0b6781c64.zip external_llvm-aa7a2f2ba308656e206338fe65c422e0b6781c64.tar.gz external_llvm-aa7a2f2ba308656e206338fe65c422e0b6781c64.tar.bz2 |
Factor macro argument parsing into helper methods and add support for .irp.
Patch extracted from a larger one by the PaX team. I added the testcases
and tightened error handling a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser/macro-irp.s')
-rw-r--r-- | test/MC/AsmParser/macro-irp.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/AsmParser/macro-irp.s b/test/MC/AsmParser/macro-irp.s new file mode 100644 index 0000000..a368b74 --- /dev/null +++ b/test/MC/AsmParser/macro-irp.s @@ -0,0 +1,8 @@ +// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s + +.irp reg,%eax,%ebx + pushl \reg +.endr + +// CHECK: pushl %eax +// CHECK: pushl %ebx |