[clang] [CIR] Fix lit tests after explicit target feature for module asm (PR #207741)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 08:06:34 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clangir
Author: darkbuck
<details>
<summary>Changes</summary>
- Fix lit tests after the module-level inline assembly is enhanced to support specifying target features explicitly in fcfc9167b628a2fae8fe1d662989ff7752d905ad.
---
Full diff: https://github.com/llvm/llvm-project/pull/207741.diff
2 Files Affected:
- (modified) clang/test/CIR/CodeGen/inline-asm.c (+4-3)
- (modified) clang/test/CIR/Lowering/module-asm.cir (+3-2)
``````````diff
diff --git a/clang/test/CIR/CodeGen/inline-asm.c b/clang/test/CIR/CodeGen/inline-asm.c
index 6a65438196489..0060d78a5ea32 100644
--- a/clang/test/CIR/CodeGen/inline-asm.c
+++ b/clang/test/CIR/CodeGen/inline-asm.c
@@ -9,9 +9,10 @@ __asm__ ("foo1");
__asm__ ("foo2");
__asm__ ("foo3");
// CIR: module{{.*}} cir.module_asm = ["foo1", "foo2", "foo3"]
-// LLVM: module asm "foo1"
-// LLVM-NEXT: module asm "foo2"
-// LLVM-NEXT: module asm "foo3"
+// LLVM: module asm
+// LLVM-NEXT: "foo1"
+// LLVM-NEXT: "foo2"
+// LLVM-NEXT: "foo3"
// CIR: cir.func{{.*}}@empty1
// CIR: cir.asm(x86_att,
diff --git a/clang/test/CIR/Lowering/module-asm.cir b/clang/test/CIR/Lowering/module-asm.cir
index b802cda8f6e65..4bc6a31f661d2 100644
--- a/clang/test/CIR/Lowering/module-asm.cir
+++ b/clang/test/CIR/Lowering/module-asm.cir
@@ -5,7 +5,8 @@
// RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s
// CHECK: llvm.module_asm = [".globl bar", ".globl foo"]
-// LLVM: module asm ".globl bar"
-// LLVM: module asm ".globl foo"
+// LLVM: module asm
+// LLVM-NEXT: ".globl bar"
+// LLVM-NEXT: ".globl foo"
module attributes {cir.module_asm = [".globl bar", ".globl foo"]} {
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/207741
More information about the cfe-commits
mailing list