https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96479
--- Comment #2 from qiaopeixin at huawei dot com --- (In reply to Richard Biener from comment #1) > If -mgeneral-regs-only is not supposed to be an ABI changing option then the > compiler has to reject code using non-general regs. With a diagnostic > preferably, not by ICEing. For now, the compiler report the diagnostic information as following ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c: In function ‘myfunc2’: ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c:17:1: error: ‘-mgeneral-regs-only’ is incompatible with the use of vector types ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c: In function ‘modify’: ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c:28:10: error: ‘-mgeneral-regs-only’ is incompatible with the use of vector types ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c:28:10: error: ‘-mgeneral-regs-only’ is incompatible with the use of vector types ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c: In function ‘myfunc2’: ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c:16:20: error: ‘-mgeneral-regs-only’ is incompatible with the use of vector types ../gcc/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c:23:12: error: ‘-mgeneral-regs-only’ is incompatible with the use of vector types