From b5191e98e883fe804c400cc5187fe54d41a808e0 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 28 Dec 2013 05:54:33 +0000 Subject: 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 --- test/MC/AsmParser/directive_rept.s | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/MC/AsmParser/directive_rept.s (limited to 'test') 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 + -- cgit v1.2.3