llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[HLSL] fmod is not restricting vector size

Open kmpeng opened this issue 1 year ago • 0 comments

This is in continuation of issue #129003.

We are currently not restricting vector sizes for the fmod intrinsic. https://github.com/llvm/llvm-project/blob/9d7e1d92dbef5aa4d11deed360685a86935953d2/clang/lib/Headers/hlsl/hlsl_intrinsics.h#L137-L146

We need to exclude vec1s and limit to vec4s, similar to how PR #130724 does it.

kmpeng avatar Mar 12 '25 20:03 kmpeng