Issue |
128230
|
Summary |
[HLSL] `clamp` overloads with mixed scalar vector operands
|
Labels |
HLSL
|
Assignees |
|
Reporter |
llvm-beanz
|
Presently Clang fails to resolve `clamp` overloads if the range values are scalars. We should support overloads where either or both values can be scalars:
```hlsl
export int4 call(int4 I, int Min, int Max) {
return clamp(I, Min, Max); // calls clamp(int4, int4, int4)
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs