Skip to content

[HLSL][SPIRV] __builtin_hlsl_elementwise_isinf should generate OpIsInf #148051

@spall

Description

@spall

'__builtin_hlsl_elementwise_isinf' currently always generates the 'llvm.dx.isinf' intrinsic (

return Builder.CreateIntrinsic(retType, Intrinsic::dx_isinf,
)

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

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions