[RISCV] Add a test with unknown argument of .attribute directive

This commit is contained in:
Sergei Barannikov 2023-07-01 05:11:31 +03:00
parent 6a5da11b87
commit c2d7ee79b9

View File

@ -1,4 +1,5 @@
## Negative tests:
## - Unknown attribute name.
## - Feed integer value to string type attribute.
## - Feed string value to integer type attribute.
## - Invalid arch string.
@ -6,6 +7,9 @@
# RUN: not llvm-mc %s -triple=riscv32 -filetype=asm 2>&1 | FileCheck %s
# RUN: not llvm-mc %s -triple=riscv64 -filetype=asm 2>&1 | FileCheck %s
.attribute unknown, "unknown"
# CHECK: [[@LINE-1]]:12: error: attribute name not recognised: unknown
.attribute arch, "foo"
# CHECK: [[@LINE-1]]:18: error: invalid arch name 'foo', string must begin with rv32{i,e,g} or rv64{i,e,g}