[clang] [llvm] [clang][LTO] Emit symbols for global inline assembly as module flags (PR #174995)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 11:13:24 PST 2026


================
@@ -0,0 +1,26 @@
+; RUN: llvm-as %s -o %t.o
+; RUN: llvm-lto2 run -mattr=+zcmp -filetype=asm -o %t.s %t.o -r=%t.o,func
+; RUN: llvm-nm %t.o | FileCheck %s --check-prefix NM
----------------
ilovepi wrote:

Can you add a similar case w/ just `llc` to llvm/test/Codegen/RISCV. AFAICT this is a generic problem that surfaces most in LTO, but can also affect regular code generation.

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


More information about the llvm-commits mailing list