Skip to content

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

Open
@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

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions