[llvm] [DirectX] Update error messages after #194061 (PR #195553)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Sun May 3 13:56:36 PDT 2026
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/195553
Since DirectX is an experimental target these tests aren't failing on public bots, but they obviously do when building DirectX.
>From fe56e338ad137387764c0878e63d867969cb554a Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Sun, 3 May 2026 13:52:12 -0700
Subject: [PATCH] [DirectX] Update error messages after #194061
Since DirectX is an experimental target these tests aren't failing on public
bots, but they obviously do when building DirectX.
---
llvm/test/CodeGen/DirectX/discard_error.ll | 2 +-
llvm/test/CodeGen/DirectX/firstbitlow_error.ll | 2 +-
llvm/test/CodeGen/DirectX/firstbitshigh_error.ll | 2 +-
llvm/test/CodeGen/DirectX/firstbituhigh_error.ll | 2 +-
llvm/test/CodeGen/DirectX/saturate_errors.ll | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/llvm/test/CodeGen/DirectX/discard_error.ll b/llvm/test/CodeGen/DirectX/discard_error.ll
index f863b39856e6b..51cfc835817c3 100644
--- a/llvm/test/CodeGen/DirectX/discard_error.ll
+++ b/llvm/test/CodeGen/DirectX/discard_error.ll
@@ -2,7 +2,7 @@
; DXIL operation discard does not support no bool overload type
-; CHECK: invalid intrinsic signature
+; CHECK: intrinsic has incorrect argument type
; CHECK: call void @llvm.dx.discard(double %p)
;
define void @discard_double(double noundef %p) {
diff --git a/llvm/test/CodeGen/DirectX/firstbitlow_error.ll b/llvm/test/CodeGen/DirectX/firstbitlow_error.ll
index d8b9333067f4a..cdb169be882df 100644
--- a/llvm/test/CodeGen/DirectX/firstbitlow_error.ll
+++ b/llvm/test/CodeGen/DirectX/firstbitlow_error.ll
@@ -1,7 +1,7 @@
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation firstbitshigh does not support double overload type
-; CHECK: invalid intrinsic signature
+; CHECK: intrinsic has incorrect argument type
define noundef double @firstbitlow_double(double noundef %a) {
entry:
diff --git a/llvm/test/CodeGen/DirectX/firstbitshigh_error.ll b/llvm/test/CodeGen/DirectX/firstbitshigh_error.ll
index 22982a03e4792..6280feceec0b2 100644
--- a/llvm/test/CodeGen/DirectX/firstbitshigh_error.ll
+++ b/llvm/test/CodeGen/DirectX/firstbitshigh_error.ll
@@ -1,7 +1,7 @@
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation firstbitshigh does not support double overload type
-; CHECK: invalid intrinsic signature
+; CHECK: intrinsic has incorrect argument type
define noundef double @firstbitshigh_double(double noundef %a) {
entry:
diff --git a/llvm/test/CodeGen/DirectX/firstbituhigh_error.ll b/llvm/test/CodeGen/DirectX/firstbituhigh_error.ll
index b611a96ffc2f9..18f13f42acef5 100644
--- a/llvm/test/CodeGen/DirectX/firstbituhigh_error.ll
+++ b/llvm/test/CodeGen/DirectX/firstbituhigh_error.ll
@@ -1,7 +1,7 @@
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation firstbituhigh does not support double overload type
-; CHECK: invalid intrinsic signature
+; CHECK: intrinsic has incorrect argument type
define noundef double @firstbituhigh_double(double noundef %a) {
entry:
diff --git a/llvm/test/CodeGen/DirectX/saturate_errors.ll b/llvm/test/CodeGen/DirectX/saturate_errors.ll
index 0dd2e04ab5675..17c82ba1ea419 100644
--- a/llvm/test/CodeGen/DirectX/saturate_errors.ll
+++ b/llvm/test/CodeGen/DirectX/saturate_errors.ll
@@ -1,7 +1,7 @@
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation saturate does not support i32 overload
-; CHECK: invalid intrinsic signature
+; CHECK: intrinsic has incorrect return type
define noundef i32 @test_saturate_i32(i32 noundef %p0) #0 {
entry:
More information about the llvm-commits
mailing list