2 ## - Feed integer value to string type attribute.
3 ## - Feed string value to integer type attribute.
4 ## - Invalid arch string.
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
10 # CHECK: [[@LINE-1]]:18: error: bad arch string foo
12 .attribute arch, "rv32i2p0_y2p0"
13 # CHECK: [[@LINE-1]]:18: error: bad arch string y2p0
15 .attribute stack_align, "16"
16 # CHECK: [[@LINE-1]]:25: error: expected numeric constant
18 .attribute unaligned_access, "0"
19 # CHECK: [[@LINE-1]]:30: error: expected numeric constant
21 .attribute priv_spec, "2"
22 # CHECK: [[@LINE-1]]:23: error: expected numeric constant
24 .attribute priv_spec_minor, "0"
25 # CHECK: [[@LINE-1]]:29: error: expected numeric constant
27 .attribute priv_spec_revision, "0"
28 # CHECK: [[@LINE-1]]:32: error: expected numeric constant
31 # CHECK: [[@LINE-1]]:18: error: expected string constant