2020-04-12 23:14:37 +08:00
|
|
|
# RUN: llvm-mc -triple=x86_64 %s | FileCheck %s
|
|
|
|
# RUN: llvm-mc -triple=x86_64-apple-darwin10 %s | FileCheck %s
|
2010-07-19 03:00:10 +08:00
|
|
|
|
2020-04-12 23:14:37 +08:00
|
|
|
.macro make_macro a, b, c ,d ,e, f
|
|
|
|
\a \b \c
|
|
|
|
\d \e
|
|
|
|
\f
|
|
|
|
.endm
|
|
|
|
make_macro .macro,mybyte,a,.byte,\a,.endm
|
|
|
|
# CHECK: .byte 42
|
|
|
|
mybyte 42
|
2014-02-10 00:22:00 +08:00
|
|
|
|
2020-04-12 23:14:37 +08:00
|
|
|
# PR18599
|
2014-02-10 00:22:00 +08:00
|
|
|
.macro macro_a
|
2020-04-12 23:14:37 +08:00
|
|
|
.macro macro_b
|
|
|
|
.byte 10
|
|
|
|
.macro macro_c
|
|
|
|
.endm
|
2014-02-10 00:22:00 +08:00
|
|
|
|
2020-04-12 23:14:37 +08:00
|
|
|
macro_c
|
|
|
|
.purgem macro_c
|
|
|
|
.endm
|
2014-02-10 00:22:00 +08:00
|
|
|
|
2020-04-12 23:14:37 +08:00
|
|
|
macro_b
|
2014-02-10 00:22:00 +08:00
|
|
|
.endm
|
|
|
|
|
2020-04-12 23:14:37 +08:00
|
|
|
# CHECK: .byte 10
|
|
|
|
# CHECK: .byte 10
|
2014-02-10 00:22:00 +08:00
|
|
|
macro_a
|
|
|
|
macro_b
|