[llvm] [RISCV] Use 'riscv-isa' module flag to set ELF flags and attributes. (PR #85155)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 21:20:56 PDT 2024


================
@@ -0,0 +1,17 @@
+; RUN: llc -mtriple=riscv32 %s -o - | FileCheck %s --check-prefix=RV32
+; RUN: llc -mtriple=riscv64 %s -o - | FileCheck %s --check-prefix=RV64
+
+; Test generation of ELF attribute from module metadata
+
+; RV32: .attribute 5, "rv32i2p1_m2p0_zba1p0"
+; RV64: .attribute 5, "rv64i2p1_m2p0_zba1p0"
----------------
ilovepi wrote:

I don’t think that’s necessary. I’m pretty sure you’re right and this is equivalent. 

https://github.com/llvm/llvm-project/pull/85155


More information about the llvm-commits mailing list