diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 23:30:00 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 23:30:00 +0000 |
| commit | a10e519e04fc3f2bffaa9b89fcd2edf825d25b47 (patch) | |
| tree | d076c5571673c16c2e681521d51e6c32ef79b692 /llvm/test/MC/AsmParser/directive_space.s | |
| parent | 4c048fe5adc35d9a5b4614b550d50b65cb396e49 (diff) | |
| download | bcm5719-llvm-a10e519e04fc3f2bffaa9b89fcd2edf825d25b47.tar.gz bcm5719-llvm-a10e519e04fc3f2bffaa9b89fcd2edf825d25b47.zip | |
Basic .s parsing for .asci[iz], .fill, .space, {.byte, .short, ... }
- Includes some DG tests in test/MC/AsmParser, which are rather primitive since
we don't have a -verify mode yet.
llvm-svn: 74139
Diffstat (limited to 'llvm/test/MC/AsmParser/directive_space.s')
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_space.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_space.s b/llvm/test/MC/AsmParser/directive_space.s new file mode 100644 index 00000000000..6159775de4b --- /dev/null +++ b/llvm/test/MC/AsmParser/directive_space.s @@ -0,0 +1,11 @@ +# RUN: llvm-mc %s > %t + +# RUN: grep -A 2 TEST0 %t > %t2 +# RUN: grep ".byte 0" %t2 | count 1 +TEST0: + .space 1 + +# RUN: grep -A 3 TEST1 %t > %t2 +# RUN: grep ".byte 3" %t2 | count 2 +TEST1: + .space 2, 3 |

