[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 07:34:47 PDT 2026


https://github.com/darkbuck created https://github.com/llvm/llvm-project/pull/207741

- Fix lit tests after the module-level inline assembly is enhanced to support specifying target features explicitly in fcfc9167b628a2fae8fe1d662989ff7752d905ad.

>From bdfc31aa6a8e8da5c7fe33acfc86dbe62f4cf153 Mon Sep 17 00:00:00 2001
From: Michael Liao <michael.hliao at gmail.com>
Date: Mon, 6 Jul 2026 10:21:22 -0400
Subject: [PATCH] [CIR] Fix lit tests after explicit target feature for module
 asm

- Fix lit tests after the module-level inline assembly is enhanced to
  support specifying target features explicitly in
  fcfc9167b628a2fae8fe1d662989ff7752d905ad.
---
 clang/test/CIR/CodeGen/inline-asm.c    | 7 ++++---
 clang/test/CIR/Lowering/module-asm.cir | 5 +++--
 2 files changed, 7 insertions(+), 5 deletions(-)

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"]} {
 }



More information about the cfe-commits mailing list