1## Negative tests: 2## - Feed integer value to string type attribute. 3## - Feed string value to integer type attribute. 4## - Invalid arch string. 5 6# RUN: not llvm-mc %s -triple=riscv32 -filetype=asm 2>&1 | FileCheck %s 7# RUN: not llvm-mc %s -triple=riscv64 -filetype=asm 2>&1 | FileCheck %s 8 9.attribute arch, "foo" 10# CHECK: [[@LINE-1]]:18: error: bad arch string foo 11 12.attribute arch, "rv32i2p0_y2p0" 13# CHECK: [[@LINE-1]]:18: error: bad arch string y2p0 14 15.attribute stack_align, "16" 16# CHECK: [[@LINE-1]]:25: error: expected numeric constant 17 18.attribute unaligned_access, "0" 19# CHECK: [[@LINE-1]]:30: error: expected numeric constant 20 21.attribute priv_spec, "2" 22# CHECK: [[@LINE-1]]:23: error: expected numeric constant 23 24.attribute priv_spec_minor, "0" 25# CHECK: [[@LINE-1]]:29: error: expected numeric constant 26 27.attribute priv_spec_revision, "0" 28# CHECK: [[@LINE-1]]:32: error: expected numeric constant 29 30.attribute arch, 30 31# CHECK: [[@LINE-1]]:18: error: expected string constant 32