Skip to content

AdvSimd: Invalid "The constant does not fit within the value bounds of '0' to '15'" warning #103556

@EgorBo

Description

@EgorBo

Compile the following code:

Vector128<ulong> v = Vector128.Create(ulong.MaxValue);
_ = AdvSimd.ShiftLeftLogical(v, 32);

Expected:

no warning

Actual:

Warning CA1857: The constant does not fit within the value bounds of '0' to '15'

Seems like other overloads are affected as well.

cc @tannergooding

SHL arm reference: https://developer.arm.com/documentation/ddi0602/2024-03/SIMD-FP-Instructions/SHL--Shift-Left--immediate--

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions