[clang] [HLSL] Add matrix support for isnan() and isinf() (PR #195586)

Dan Brown via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 23:15:18 PDT 2026


================
@@ -60,3 +60,164 @@ bool3 test_isnan_float3(float3 p0) { return isnan(p0); }
 // CHECK: %hlsl.isnan = call <4 x i1> @llvm.[[ICF]].isnan.v4f32
 // CHECK: ret <4 x i1> %hlsl.isnan
 bool4 test_isnan_float4(float4 p0) { return isnan(p0); }
+
+// CHECK: define hidden [[FN_TYPE]]noundef <3 x i1> @
+// CHECK: %hlsl.isnan = call <3 x i1> @llvm.[[ICF]].isnan.v3f32
----------------
danbrown-amd wrote:

They've been removed.

https://github.com/llvm/llvm-project/pull/195586


More information about the cfe-commits mailing list