mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
cdab4efbd2
This adds support in the RISCVAsmParser the storing of Subtarget feature bits to a stack so that they can be pushed/popped to enable/disable multiple features at once. Differential Revision: https://reviews.llvm.org/D46424 Patch by Lewis Revill. llvm-svn: 347774
27 lines
692 B
ArmAsm
27 lines
692 B
ArmAsm
# RUN: not llvm-mc -triple riscv32 < %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefixes=CHECK %s
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
.option
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
.option 123
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
.option "str"
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
.option rvc foo
|
|
|
|
# CHECK: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax'
|
|
.option bar
|
|
|
|
# CHECK: error: .option pop with no .option push
|
|
.option pop
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
.option push 123
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
.option pop 123
|