summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/directive_ascii.s
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-24 23:30:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-24 23:30:00 +0000
commita10e519e04fc3f2bffaa9b89fcd2edf825d25b47 (patch)
treed076c5571673c16c2e681521d51e6c32ef79b692 /llvm/test/MC/AsmParser/directive_ascii.s
parent4c048fe5adc35d9a5b4614b550d50b65cb396e49 (diff)
downloadbcm5719-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_ascii.s')
-rw-r--r--llvm/test/MC/AsmParser/directive_ascii.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_ascii.s b/llvm/test/MC/AsmParser/directive_ascii.s
new file mode 100644
index 00000000000..95e194a3768
--- /dev/null
+++ b/llvm/test/MC/AsmParser/directive_ascii.s
@@ -0,0 +1,25 @@
+# RUN: llvm-mc %s > %t
+
+# RUN: grep -A 1 TEST0 %t > %t2
+# RUN: not grep ".byte" %t2
+TEST0:
+ .ascii
+
+# RUN: grep -A 1 TEST1 %t > %t2
+# RUN: not grep "byte" %t2
+TEST1:
+ .asciz
+
+# RUN: grep -A 2 TEST2 %t > %t2
+# RUN: grep ".byte 65" %t2 | count 1
+TEST2:
+ .ascii "A"
+
+# RUN: grep -A 5 TEST3 %t > %t2
+# RUN: grep ".byte 66" %t2 | count 1
+# RUN: grep ".byte 67" %t2 | count 1
+# RUN: grep ".byte 0" %t2 | count 2
+TEST3:
+ .asciz "B", "C"
+
+ \ No newline at end of file
OpenPOWER on IntegriCloud