[llvm] 94e005d - [DirectX] Update error messages after #194061 (#195553)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 3 16:37:52 PDT 2026
Author: Justin Bogner
Date: 2026-05-03T16:37:48-07:00
New Revision: 94e005d6ea3459f1c80e5ac24f4411be5abf4cf2
URL: https://github.com/llvm/llvm-project/commit/94e005d6ea3459f1c80e5ac24f4411be5abf4cf2
DIFF: https://github.com/llvm/llvm-project/commit/94e005d6ea3459f1c80e5ac24f4411be5abf4cf2.diff
LOG: [DirectX] Update error messages after #194061 (#195553)
Since DirectX is an experimental target these tests aren't failing on
public bots, but they obviously do when building DirectX.
Added:
Modified:
llvm/test/CodeGen/DirectX/discard_error.ll
llvm/test/CodeGen/DirectX/firstbitlow_error.ll
llvm/test/CodeGen/DirectX/firstbitshigh_error.ll
llvm/test/CodeGen/DirectX/firstbituhigh_error.ll
llvm/test/CodeGen/DirectX/saturate_errors.ll
Removed:
################################################################################
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