[PATCH] IAS: support .rep as an alias for .rept

Saleem Abdulrasool compnerd at compnerd.org
Sun Dec 22 15:00:39 PST 2013


Hi rengolin,

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.

http://llvm-reviews.chandlerc.com/D2457

Files:
  test/MC/AsmParser/directive_rept.s

Index: test/MC/AsmParser/directive_rept.s
===================================================================
--- /dev/null
+++ 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, at 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, at 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
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2457.1.patch
Type: text/x-patch
Size: 796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131222/1bd51572/attachment.bin>


More information about the llvm-commits mailing list