Hi, The test case vector-subscript-2.c in the gcc testsuit will report an ICE in the expand pass since '-mgeneral-regs-only' is incompatible with the use of V4SI mode. I propose to report the diagnostic information instead of ICE, and the problem has been discussed on PR 96479.
I attached the patch to solve the problem. Bootstrapped and tested on aarch64-linux-gnu. Any suggestions? All the best, Peixin
0001-AArch64-Add-if-condition-in-aarch64_function_value-P.patch
Description: 0001-AArch64-Add-if-condition-in-aarch64_function_value-P.patch