brintos

brintos / llvm-project-archived public Read only

0
0
Text · 478 B · 2b553c0 Raw
18 lines · plain
1; RUN: llc -mtriple=riscv32 %s -o - | FileCheck %s --check-prefix=RV322; RUN: llc -mtriple=riscv64 %s -o - | FileCheck %s --check-prefix=RV643 4; Test generation of ELF attribute from module metadata5 6; RV32: .attribute 5, "rv32i2p1_m2p0_zmmul1p0_zba1p0"7; RV64: .attribute 5, "rv64i2p1_m2p0_zmmul1p0_zba1p0"8 9define i32 @addi(i32 %a) {10  %1 = add i32 %a, 111  ret i32 %112}13 14!llvm.module.flags = !{!0}15 16!0 = !{i32 6, !"riscv-isa", !1}17!1 = !{!"rv64i2p1_m2p0", !"rv64i2p1_zba1p0"}18