[llvm] [RISCV] Use 'riscv-isa' module flag to set ELF flags and attributes. (PR #85155)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 20:59:23 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"
----------------
topperc wrote:
My intent was that this test is what would happen in that case. I can add an llvm-lto2 test for the merging if reviewers want.
https://github.com/llvm/llvm-project/pull/85155
More information about the llvm-commits
mailing list