https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #2 from xiaoyong yan <yanxiaoyong5 at gmail dot com> --- (In reply to Richard Earnshaw from comment #1) > It looks like those messages are coming from the assembler, not the > compiler, but without a testcase it's difficult to be exactly sure what your > problem is. > > Please attach a small program that demonstrates your problem and state the > /exact/ command line you used. Hi Richard: thanks for reply. here is the test file for pauth, named as test.S: align 8 .global test .type test,%function test: mrs x9, apiakeyhi_el1 mrs x10, apiakeylo_el1 mov x11, lr mov x12, sp when I use "aarch64-none-linux-gnu-gcc -mcpu=cortex-a78ae test.S -o test.o", gcc generates errors as follows: test.S: Assembler messages: test.S:5: Error: selected processor does not support system register name 'apiakeyhi_el1' test.S:6: Error: selected processor does not support system register name 'apiakeylo_el1' when I use "aarch64-none-linux-gnu-gcc -march=armv8.2-a+pauth -c test.S -o test.o", gcc generates errors as follows: test.S: Assembler messages: test.S:5: Error: selected processor does not support system register name 'apiakeyhi_el1' test.S:6: Error: selected processor does not support system register name 'apiakeylo_el1' when I use "aarch64-none-linux-gnu-gcc -march=armv8.3-a -c test.S -o test.o", there is no error generated.