brintos

brintos / llvm-project-archived public Read only

0
0
Text · 896 B · 762a57a Raw
30 lines · plain
1## Test llvm-mc could handle .attribute correctly.2 3# RUN: llvm-mc %s -triple=riscv32 -filetype=asm | FileCheck %s4# RUN: llvm-mc %s -triple=riscv64 -filetype=asm | FileCheck %s5# RUN: llvm-mc %s -triple=riscv32 -filetype=asm -riscv-add-build-attributes \6# RUN:   | FileCheck %s7# RUN: llvm-mc %s -triple=riscv64 -filetype=asm -riscv-add-build-attributes \8# RUN:   | FileCheck %s9 10.attribute stack_align, 1611# CHECK: attribute      4, 1612 13.attribute arch, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0"14# CHECK: attribute      5, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0"15 16.attribute unaligned_access, 017# CHECK: attribute      6, 018 19.attribute priv_spec, 220# CHECK: attribute      8, 221 22.attribute priv_spec_minor, 023# CHECK: attribute      10, 024 25.attribute priv_spec_revision, 026# CHECK: attribute      12, 027 28.attribute atomic_abi, 029# CHECK: attribute      14, 030