mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-09 15:57:28 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108654 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
680 B
ArmAsm
33 lines
680 B
ArmAsm
// RUN: llvm-mc %s 2> %t.err | FileCheck %s
|
|
// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
|
|
|
|
.macro .test0
|
|
.macrobody0
|
|
.endmacro
|
|
.macro .test1
|
|
.test0
|
|
.endmacro
|
|
|
|
.test1
|
|
// CHECK-ERRORS: <instantiation>:1:1: warning: ignoring directive for now
|
|
// CHECK-ERRORS-NEXT: macrobody0
|
|
// CHECK-ERRORS-NEXT: ^
|
|
// CHECK-ERRORS: <instantiation>:1:1: note: while in macro instantiation
|
|
// CHECK-ERRORS-NEXT: .test0
|
|
// CHECK-ERRORS-NEXT: ^
|
|
// CHECK-ERRORS: 11:1: note: while in macro instantiation
|
|
// CHECK-ERRORS-NEXT: .test1
|
|
// CHECK-ERRORS-NEXT: ^
|
|
|
|
.macro test2
|
|
.byte $0
|
|
.endmacro
|
|
test2 10
|
|
|
|
.macro test3
|
|
.globl "$0 $1 $2 $$3 $n"
|
|
.endmacro
|
|
|
|
// CHECK: .globl "1 23 $3 2"
|
|
test3 1,2 3
|