[Mlir-commits] [mlir] [MLIR][XeVM] Mark gpu.printf test with XFAIL. (PR #184215)

Sang Ik Lee llvmlistbot at llvm.org
Thu Mar 5 14:59:59 PST 2026


https://github.com/silee2 updated https://github.com/llvm/llvm-project/pull/184215

>From 9a3e658fa4c4b1a6c96d3d056fb3407a92c2b59c Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Mon, 2 Mar 2026 19:53:15 +0000
Subject: [PATCH 1/3] [MLIR][XeVM] Disable gpu.printf test. Temporarily disable
 gpu.printf tests until vararg handling issue with SPIR-V backend is resolved.

---
 mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg b/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
index d0d51c6020588..2d52e48528b6a 100644
--- a/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
+++ b/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
@@ -2,3 +2,5 @@ if not config.run_xevm_tests:
     config.unsupported = True
 if not config.enable_levelzero_runner:
     config.unsupported = True
+# Temporary until gpu.printf issue is resolved
+config.excludes = ["gpu_printf.mlir"]

>From 3dde21993b9ecb8c3aae6b5d81926ee63c72f6b4 Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Wed, 4 Mar 2026 01:08:28 +0000
Subject: [PATCH 2/3] Use XFAIL instead.

---
 mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir | 1 +
 mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg   | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir b/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
index 5ed2148a7258a..132ebfffbb564 100644
--- a/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
+++ b/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
@@ -9,6 +9,7 @@
 // RUN:   --entry-point-result=void \
 // RUN: | FileCheck %s
 
+// XFAIL: *
 module @test attributes {gpu.container_module} {
   gpu.module @test_module {
     gpu.func @test_printf(%arg0: i32, %arg1: f32) kernel {
diff --git a/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg b/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
index 2d52e48528b6a..d0d51c6020588 100644
--- a/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
+++ b/mlir/test/Integration/Dialect/XeVM/GPU/lit.local.cfg
@@ -2,5 +2,3 @@ if not config.run_xevm_tests:
     config.unsupported = True
 if not config.enable_levelzero_runner:
     config.unsupported = True
-# Temporary until gpu.printf issue is resolved
-config.excludes = ["gpu_printf.mlir"]

>From 676e6a0d6d9cec9761f5569520d15bff43060710 Mon Sep 17 00:00:00 2001
From: "Lee, Sang Ik" <sang.ik.lee at intel.com>
Date: Thu, 5 Mar 2026 22:59:39 +0000
Subject: [PATCH 3/3] Add comment.

---
 mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir b/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
index 132ebfffbb564..d5f2a2358f1d8 100644
--- a/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
+++ b/mlir/test/Integration/Dialect/XeVM/GPU/gpu_printf.mlir
@@ -9,6 +9,10 @@
 // RUN:   --entry-point-result=void \
 // RUN: | FileCheck %s
 
+// SPIR-V backend generates incorrect printf ops after
+// https://github.com/llvm/llvm-project/pull/178980 changed the way variadic arguments.
+// are handled. Test is expected to fail until the issue is resolved.
+
 // XFAIL: *
 module @test attributes {gpu.container_module} {
   gpu.module @test_module {



More information about the Mlir-commits mailing list