https://gcc.gnu.org/g:96410630acaa3826b9d65295276ea8da9f8d4206
commit r17-5984-g96410630acaa3826b9d65295276ea8da9f8d4206 Author: Karl Meakin <[email protected]> Date: Thu Nov 5 18:12:42 2026 +0000 aarch64: Fix fmul_intrinsic_1.c test In commit 8b8f5f19b, I had to reword the code in fmul_intrinsic_1.c to avoid triggering a compiler error due to out of bounds lane indices. However, as part of that, I did not notice that the pointer loaded into `c` should also be `in2 + 1` when `in2_lanes < 1`. Therefore, assembly produced changed and the execution test failed. Fix both issues by offsetting in2 by `in2_lanes <= 1`. Committed as obvious. gcc/testsuite/ChangeLog: * gcc.target/aarch64/fmul_intrinsic_1.c: Fix loading of `in2` into `c`; update expected assembly back to what it was before 8b8f5f19b. Diff: --- gcc/testsuite/gcc.target/aarch64/fmul_intrinsic_1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/fmul_intrinsic_1.c b/gcc/testsuite/gcc.target/aarch64/fmul_intrinsic_1.c index 771c96941586..cea335af826c 100644 --- a/gcc/testsuite/gcc.target/aarch64/fmul_intrinsic_1.c +++ b/gcc/testsuite/gcc.target/aarch64/fmul_intrinsic_1.c @@ -17,7 +17,7 @@ test_vmul##q1##_lane##q2##_f##size (float##size##_t * res, \ float##size##x##in1_lanes##_t a = vld1##q1##_f##size (res); \ float##size##x##in1_lanes##_t b = vld1##q1##_f##size (in1); \ float##size##x##in2_lanes##_t c; \ - c = vld1##q2##_f##size (in2); \ + c = vld1##q2##_f##size (in2 + (in2_lanes <= 1)); \ a = vmul##q1##_lane##q2##_f##size (b, c, in2_lanes > 1 ? 1 : 0); \ vst1##q1##_f##size (res, a); \ } @@ -105,4 +105,4 @@ main (int argc, char **argv) /* vmulq_lane_f64. vmulq_laneq_f64. */ /* { dg-final { scan-assembler-times {fmul v[0-9]+\.2d, v[0-9]+\.2d, v[0-9]+\.d\[[0-9\]+\]} 3 { target aarch64_big_endian } } } */ -/* { dg-final { scan-assembler-times {fmul v[0-9]+\.2d, v[0-9]+\.2d, v[0-9]+\.d\[[0-9]+\]} 1 { target aarch64_little_endian } } } */ +/* { dg-final { scan-assembler-times {fmul v[0-9]+\.2d, v[0-9]+\.2d, v[0-9]+\.d\[[0-9]+\]} 2 { target aarch64_little_endian } } } */
