Issue 128231
Summary [HLSL] `max` and `min` overloads with mixed scalar and vector arguments
Labels new issue
Assignees
Reporter llvm-beanz
    Presently Clang fails to resolve `max` and `min` function calls when the arguments are mixes of scalar and vector type. This prevents common code patterns such as:

```hlsl
export int4 call(int4 I, int Min) {
    return min(I, Min); // calls min(int4, int4)
}
```

These patterns are particularly useful with literal values.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to