'__builtin_hlsl_elementwise_isinf' currently always generates the 'llvm.dx.isinf' intrinsic (https://github.com/llvm/llvm-project/blob/00dd6660c2bfdb024159aa9a0a69a29cdffe1a64/clang/lib/CodeGen/CGHLSLBuiltins.cpp#L551) This makes its way to the SPIRV Backend and produces this crash: https://godbolt.org/z/Me1r6Es7x In the case of spirv we need to generate a spirv intrinsic instead. SPIRV Op: OpIsInf