[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / invalid-attribute.s
blobe3cfe28fdf442273a39828c00756bc15f0b42b9a
1 ## Negative tests:
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
9 .attribute arch, "foo"
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
30 .attribute arch, 30
31 # CHECK: [[@LINE-1]]:18: error: expected string constant