1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/AsmParser/macro-required-argument.s
Fangrui Song 6c753fab28 [MC][test] Reorganize macro tests
* Add locations
* Use FileCheck --match-full-lines --strict-whitespace
* Use CHECK-NEXT:
* Merge related tests
* Delete redundant tests
* Improve test coverage

Differential Revision: https://reviews.llvm.org/D77981
2020-04-12 15:18:35 -07:00

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