]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix narrowing warning in aarch64_detect_vector_stmt_subtype
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 10 May 2025 03:56:42 +0000 (20:56 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 16 May 2025 14:54:29 +0000 (07:54 -0700)
commit60e24acbcd7e7fb844d0e98885f20f3fb1f49f0b
treef28877b0f5dd4651c4cc319383324ec4e7ba0f57
parent6d4e8847f74d3c7f8e36f64d009dd0d856826533
aarch64: Fix narrowing warning in aarch64_detect_vector_stmt_subtype

There is a narrowing warning in aarch64_detect_vector_stmt_subtype
about gather_load_x32_cost and gather_load_x64_cost converting from int to unsigned.
These fields are always unsigned and even the constructor for sve_vec_cost takes
an unsigned. So let's just move the fields over to unsigned.

Build and tested for aarch64-linux-gnu.

gcc/ChangeLog:

* config/aarch64/aarch64-protos.h (struct sve_vec_cost): Change gather_load_x32_cost
and gather_load_x64_cost fields to unsigned.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/config/aarch64/aarch64-protos.h