mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
27ee2a5853
This enhances the macro parser to parse and handle parameter qualifications, which is needed to support required formal parameters in macro definitions. A required parameter may not be defaulted (though providing a default value is accepted with a warning). This improves GAS compatibility. Partially addresses PR9248. llvm-svn: 201630
17 lines
243 B
ArmAsm
17 lines
243 B
ArmAsm
# RUN: llvm-mc -triple i386 -o - %s | FileCheck %s
|
|
|
|
.macro required parameter:req
|
|
.long \parameter
|
|
.endm
|
|
|
|
required 0
|
|
# CHECK: .long 0
|
|
|
|
.macro required_with_default parameter:req=0
|
|
.long \parameter
|
|
.endm
|
|
|
|
required 1
|
|
# CHECK: .long 1
|
|
|