Re: [PATCH] aarch64: Fix undefined code in vect_ctz_1.c

2024-02-15 Thread Richard Sandiford
Andrew Pinski writes: > The testcase gcc.target/aarch64/vect_ctz_1.c fails execution when running > with -march=armv9-a due to the testcase calls __builtin_ctz with a value of 0. > The testcase should not depend on undefined behavior of __builtin_ctz. So this > changes it to use the g form with th

[PATCH] aarch64: Fix undefined code in vect_ctz_1.c

2024-02-02 Thread Andrew Pinski
The testcase gcc.target/aarch64/vect_ctz_1.c fails execution when running with -march=armv9-a due to the testcase calls __builtin_ctz with a value of 0. The testcase should not depend on undefined behavior of __builtin_ctz. So this changes it to use the g form with the 2nd argument of 32. Now the e