[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / attribute.s
blob29a450071fccd00fab7707aed01d3e0b8ac4dc07
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_zmmul1p0"
14 # CHECK: attribute 5, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0"
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
28 .attribute atomic_abi, 0
29 # CHECK: attribute 14, 0