Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / attribute.s
blob56f0cb1daf176f81901557c80b41b139436a2a7b
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
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
10 .attribute stack_align, 16
11 # CHECK: attribute 4, 16
13 .attribute arch, "rv32i2p1_m2p0_a2p1_c2p0"
14 # CHECK: attribute 5, "rv32i2p1_m2p0_a2p1_c2p0"
16 .attribute unaligned_access, 0
17 # CHECK: attribute 6, 0
19 .attribute priv_spec, 2
20 # CHECK: attribute 8, 2
22 .attribute priv_spec_minor, 0
23 # CHECK: attribute 10, 0
25 .attribute priv_spec_revision, 0
26 # CHECK: attribute 12, 0