mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add support for the .rept directive. Patch by Vladmir Sorokin. I added support
for nesting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
6
test/MC/AsmParser/macro-rept-err1.s
Normal file
6
test/MC/AsmParser/macro-rept-err1.s
Normal file
@@ -0,0 +1,6 @@
|
||||
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t
|
||||
// RUN: FileCheck < %t %s
|
||||
|
||||
.endr
|
||||
|
||||
// CHECK: unexpected '.endr' directive, no current .rept
|
7
test/MC/AsmParser/macro-rept-err2.s
Normal file
7
test/MC/AsmParser/macro-rept-err2.s
Normal file
@@ -0,0 +1,7 @@
|
||||
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t
|
||||
// RUN: FileCheck < %t %s
|
||||
|
||||
.rept 3
|
||||
.long
|
||||
|
||||
// CHECK: no matching '.endr' in definition
|
22
test/MC/AsmParser/macro-rept.s
Normal file
22
test/MC/AsmParser/macro-rept.s
Normal file
@@ -0,0 +1,22 @@
|
||||
// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
|
||||
|
||||
.rept 2
|
||||
.long 1
|
||||
.endr
|
||||
|
||||
.rept 3
|
||||
.rept 2
|
||||
.long 0
|
||||
.endr
|
||||
.endr
|
||||
|
||||
// CHECK: .long 1
|
||||
// CHECK: .long 1
|
||||
|
||||
// CHECK: .long 0
|
||||
// CHECK: .long 0
|
||||
// CHECK: .long 0
|
||||
|
||||
// CHECK: .long 0
|
||||
// CHECK: .long 0
|
||||
// CHECK: .long 0
|
Reference in New Issue
Block a user