1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/RISCV/option-invalid.s
Alex Bradbury ac7024c937 [RISCV] Support .option rvc and norvc assembler directives
These directives allow the 'C' (compressed) extension to be enabled/disabled 
within a single file.

Differential Revision: https://reviews.llvm.org/D45864
Patch by Kito Cheng

llvm-svn: 332107
2018-05-11 17:30:28 +00:00

18 lines
440 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 'rvc' or 'norvc'
.option bar