Issue 131170
Summary [HLSL] Add additional `min` and `max` overloads to enable compiling DML shaders
Labels new issue
Assignees
Reporter spall
    Currently clang fails to resolve cases where mixed vector and scalar types are used as arguments to 'min' and 'max'.
Cases such as:
```
float4 min(float4 p0, int p1) { return min(p0, (float4) p1); }
```
```
float4 min(float4 p0, int4 p1) { return min(p0, (float4)p1); }
```
and
```
float min(float p0, int p1) { return min(p0, (float)p1); }
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to