summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/directive_fill.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/directive_fill.s')
-rw-r--r--test/MC/AsmParser/directive_fill.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/AsmParser/directive_fill.s b/test/MC/AsmParser/directive_fill.s
new file mode 100644
index 0000000000000..ec8bdf27c7123
--- /dev/null
+++ b/test/MC/AsmParser/directive_fill.s
@@ -0,0 +1,11 @@
+# RUN: llvm-mc %s > %t
+
+# RUN: grep -A 2 TEST0 %t > %t2
+# RUN: grep ".byte 10" %t2 | count 1
+TEST0:
+ .fill 1, 1, 10
+
+# RUN: grep -A 3 TEST1 %t > %t2
+# RUN: grep ".short 3" %t2 | count 2
+TEST1:
+ .fill 2, 2, 3