[clang] [llvm] [clang][LTO] Emit symbols for global inline assembly as module flags (PR #174995)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 4 08:09:53 PST 2026
================
@@ -0,0 +1,93 @@
+RUN: llvm-as %p/Inputs/asm-bar1.ll -o %t-asm-bar1.bc
+RUN: llvm-as %p/Inputs/asm-foo-pauth.ll -o %t-asm-foo-pauth.bc
+
+Test LTO. We use -mattr=+pauth here, because llvm-lto runs CodeGen at
+the end.
+
+RUN: llvm-lto -save-merged-module -mattr=+pauth -filetype=asm %t-asm-bar1.bc %t-asm-foo-pauth.bc -o %t1
+RUN: llvm-dis %t1.merged.bc -o - | FileCheck %s --check-prefix CHECK-1
+RUN: llvm-nm %t1.merged.bc | FileCheck %s --check-prefix CHECK-1-NM
----------------
ilovepi wrote:
I guess this is a bit of a meta comment. generally I see folks using check prefixes that distinguish whats being tested.
https://github.com/llvm/llvm-project/pull/174995
More information about the cfe-commits
mailing list