1 ## Test llvm-mc could handle .attribute correctly.
3 # RUN: llvm-mc %s -triple=riscv32 -filetype=asm | FileCheck %s
4 # RUN: llvm-mc %s -triple=riscv64 -filetype=asm | FileCheck %s
6 .attribute stack_align, 16
7 # CHECK: attribute 4, 16
9 .attribute arch, "rv32i2p0_m2p0_a2p0_c2p0"
10 # CHECK: attribute 5, "rv32i2p0_m2p0_a2p0_c2p0"
12 .attribute unaligned_access, 0
13 # CHECK: attribute 6, 0
15 .attribute priv_spec, 2
16 # CHECK: attribute 8, 2
18 .attribute priv_spec_minor, 0
19 # CHECK: attribute 10, 0
21 .attribute priv_spec_revision, 0
22 # CHECK: attribute 12, 0