[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
Fri Mar 15 18:18:34 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 want to double check that we don't need to test the merging w/  `llvm-lto2`, do we? I //think// this test is equivalent to what would happen in that case, so I believe we're OK, but I'm not 100%.

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


More information about the llvm-commits mailing list