aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-02-02 13:13:58 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-02-15 10:02:41 -0800
commitcb80582229e7800eeb9570c24186b843dff5fcd7 (patch)
tree026ac8ce88aaa0e64183e17fc188d972534e2050 /gcc/fortran/trans-decl.cc
parent8e8c2d2b34971bb29e74341a3efc625f1db06639 (diff)
downloadgcc-cb80582229e7800eeb9570c24186b843dff5fcd7.zip
gcc-cb80582229e7800eeb9570c24186b843dff5fcd7.tar.gz
gcc-cb80582229e7800eeb9570c24186b843dff5fcd7.tar.bz2
aarch64: Fix undefined code in vect_ctz_1.c
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 execution part of the testcase work. It still has a scan-assembler failure which should be fixed seperately. Tested on aarch64-linux-gnu. gcc/testsuite/ChangeLog: * gcc.target/aarch64/vect_ctz_1.c (TEST): Use g form of the builtin and pass 32 as the value expected at 0. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/fortran/trans-decl.cc')
0 files changed, 0 insertions, 0 deletions