1 ; RUN: llc -mtriple=riscv32 %s -o - | FileCheck %s --check-prefix=RV32
2 ; RUN: llc -mtriple=riscv64 %s -o - | FileCheck %s --check-prefix=RV64
4 ; Test generation of ELF attribute from module metadata
6 ; RV32: .attribute 5, "rv32i2p1_m2p0_zmmul1p0_zba1p0"
7 ; RV64: .attribute 5, "rv64i2p1_m2p0_zmmul1p0_zba1p0"
9 define i32 @addi(i32 %a) {
14 !llvm.module.flags = !{!0}
16 !0 = !{i32 6, !"riscv-isa", !1}
17 !1 = !{!"rv64i2p1_m2p0", !"rv64i2p1_zba1p0"}