Skip to content

Passing constant integer arguments to dst causes ICE #8429

@pema99

Description

@pema99

Description
Passing integer arguments to dst causes an ICE.

Maybe related to #8428?

Steps to Reproduce
Shader:

[shader("pixel")]
void PSMain() {
    int4 r = dst(1, 1);
    if (r.x != 1) discard;
}

Command: dxc.exe -T ps_6_6 -E PSMain dst_int.hlsl

Actual Behavior

error: llvm::cast() argument of incompatible type!

Environment

  • dxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f727)
  • Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions