1## Test llvm-mc could handle .attribute correctly. 2 3# RUN: llvm-mc %s -triple=riscv32 -filetype=asm | FileCheck %s 4# RUN: llvm-mc %s -triple=riscv64 -filetype=asm | FileCheck %s 5# RUN: llvm-mc %s -triple=riscv32 -filetype=asm -riscv-add-build-attributes \ 6# RUN: | FileCheck %s 7# RUN: llvm-mc %s -triple=riscv64 -filetype=asm -riscv-add-build-attributes \ 8# RUN: | FileCheck %s 9 10.attribute stack_align, 16 11# CHECK: attribute 4, 16 12 13.attribute arch, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0" 14# CHECK: attribute 5, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0" 15 16.attribute unaligned_access, 0 17# CHECK: attribute 6, 0 18 19.attribute priv_spec, 2 20# CHECK: attribute 8, 2 21 22.attribute priv_spec_minor, 0 23# CHECK: attribute 10, 0 24 25.attribute priv_spec_revision, 0 26# CHECK: attribute 12, 0 27 28.attribute atomic_abi, 0 29# CHECK: attribute 14, 0 30