summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2013-12-28 05:54:33 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2013-12-28 05:54:33 +0000
commitb5191e98e883fe804c400cc5187fe54d41a808e0 (patch)
treecc66ec93a9c9ab10707a7afc20b03cc02fcc3170 /test
parentb28743fd1654853004017bc3237fd1ba88d60a2b (diff)
downloadllvm-b5191e98e883fe804c400cc5187fe54d41a808e0.tar.gz
llvm-b5191e98e883fe804c400cc5187fe54d41a808e0.tar.bz2
llvm-b5191e98e883fe804c400cc5187fe54d41a808e0.tar.xz
IAS: support .rep as an alias for .rept
The GNU assembler supports .rep as an alias for .rept. This simply creates the alias for it and introduces a test for both .rept and .rep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/AsmParser/directive_rept.s30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/MC/AsmParser/directive_rept.s b/test/MC/AsmParser/directive_rept.s
new file mode 100644
index 0000000000..4f8ed7c0b8
--- /dev/null
+++ b/test/MC/AsmParser/directive_rept.s
@@ -0,0 +1,30 @@
+# RUN: llvm-mc -triple i686-elf -filetype asm -o - %s | FileCheck %s
+
+ .data
+
+ .global two_bad_calls
+ .type two_bad_calls,@function
+two_bad_calls:
+ .rept 2
+ .long 0xbadca11
+ .endr
+
+# CHECK-LABEL: two_bad_calls
+# CHECK: .long 195938833
+# CHECK: .long 195938833
+
+ .global half_a_dozen_daffodils
+ .type half_a_dozen_daffodils,@function
+half_a_dozen_daffodils:
+ .rep 6
+ .long 0xdaff0d11
+ .endr
+
+# CHECK-LABEL: half_a_dozen_daffodils
+# CHECK: .long 3674148113
+# CHECK: .long 3674148113
+# CHECK: .long 3674148113
+# CHECK: .long 3674148113
+# CHECK: .long 3674148113
+# CHECK: .long 3674148113
+