summaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/directive_space.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/directive_space.s')
-rw-r--r--test/MC/AsmParser/directive_space.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/AsmParser/directive_space.s b/test/MC/AsmParser/directive_space.s
new file mode 100644
index 0000000..6159775
--- /dev/null
+++ b/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
OpenPOWER on IntegriCloud