mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
275f653307
This enables a slightly odd feature of gas. The macro is defined when the outermost macro is instantiated. PR18599 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201045 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
367 B
ArmAsm
34 lines
367 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-darwin10 %s | FileCheck %s
|
|
|
|
.macro .make_macro
|
|
$0 $1
|
|
$2 $3
|
|
$4
|
|
.endmacro
|
|
|
|
.make_macro .macro,.mybyte,.byte,$0,.endmacro
|
|
|
|
.data
|
|
// CHECK: .byte 10
|
|
.mybyte 10
|
|
|
|
// PR18599
|
|
.macro macro_a
|
|
|
|
.macro macro_b
|
|
.byte 10
|
|
.macro macro_c
|
|
.endm
|
|
|
|
macro_c
|
|
.purgem macro_c
|
|
.endm
|
|
|
|
macro_b
|
|
.endm
|
|
|
|
macro_a
|
|
macro_b
|
|
// CHECK: .byte 10
|
|
// CHECK: .byte 10
|