public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
@ 2024-05-13 1:35 yanxiaoyong5 at gmail dot com
2024-05-13 12:55 ` [Bug target/115058] " rearnsha at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-13 1:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
Bug ID: 115058
Summary: on target arm -mcpu=cortex-a78ae does not allow use
pauth and dot product
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: yanxiaoyong5 at gmail dot com
Target Milestone: ---
my gcc version is:
COLLECT_GCC=aarch64-none-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/root/samba/ssdk/prebuilts/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/12.2.1/lto-wrapper
目标:aarch64-none-linux-gnu
配置为:/data/jenkins/workspace/GNU-toolchain/arm-12/src/gcc/configure
--target=aarch64-none-linux-gnu --prefix=
--with-sysroot=/aarch64-none-linux-gnu/libc
--with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-12/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc
--with-bugurl=https://bugs.linaro.org/ --enable-gnu-indirect-function
--enable-shared --disable-libssp --disable-libmudflap --enable-checking=release
--enable-languages=c,c++,fortran
--with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-12/build-aarch64-none-linux-gnu/host-tools
--with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-12/build-aarch64-none-linux-gnu/host-tools
--with-mpc=/data/jenkins/workspace/GNU-toolchain/arm-12/build-aarch64-none-linux-gnu/host-tools
--with-isl=/data/jenkins/workspace/GNU-toolchain/arm-12/build-aarch64-none-linux-gnu/host-tools
--enable-fix-cortex-a53-843419 --with-pkgversion='Arm GNU Toolchain 12.2.Rel1
(Build arm-12.24)'
线程模型:posix
Supported LTO compression algorithms: zlib
gcc 版本 12.2.1 20221205 (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24))
The TRM (Technical Reference Manual) for Cortex-A78AE states that Cortex-A78AE
supports PAuth and Dot-Product.
Armv8.4-A Dot Product instruction support
Armv8.3-A Pointer Authentication support
but when I use -mcpu=cortex-a78ae, Dot Product and Pointer authentication is
not supported.
Dot Product:
105: Error: selected processor does not support `sdot v19.4s,v2.16b,v3.16b'
Pointer authentication:
Error: selected processor does not support system register name 'apiakeyhi_el1'
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
@ 2024-05-13 12:55 ` rearnsha at gcc dot gnu.org
2024-05-14 1:28 ` yanxiaoyong5 at gmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-05-13 12:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2024-05-13
--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
2024-05-13 12:55 ` [Bug target/115058] " rearnsha at gcc dot gnu.org
@ 2024-05-14 1:28 ` yanxiaoyong5 at gmail dot com
2024-05-14 1:30 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-14 1:28 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
2024-05-13 12:55 ` [Bug target/115058] " rearnsha at gcc dot gnu.org
2024-05-14 1:28 ` yanxiaoyong5 at gmail dot com
@ 2024-05-14 1:30 ` pinskia at gcc dot gnu.org
2024-05-14 5:47 ` yanxiaoyong5 at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-05-14 1:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This looks like a binutils issue rather a gcc one. It might be already fixed in
binutils too.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
` (2 preceding siblings ...)
2024-05-14 1:30 ` pinskia at gcc dot gnu.org
@ 2024-05-14 5:47 ` yanxiaoyong5 at gmail dot com
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-14 5:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #4 from xiaoyong yan <yanxiaoyong5 at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> This looks like a binutils issue rather a gcc one. It might be already fixed
> in binutils too.
I am using binutils 2.39.0, GNU assembler version 2.39.0
arm-none-eabi-as -v
GNU assembler version 2.39.0 (arm-none-eabi) using BFD version (Arm GNU
Toolchain 12.2.Rel1 (Build arm-12.24)) 2.39.0.20221210
Could you tell which version fixed it?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
` (3 preceding siblings ...)
2024-05-14 5:47 ` yanxiaoyong5 at gmail dot com
@ 2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-14 7:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #5 from xiaoyong yan <yanxiaoyong5 at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> This looks like a binutils issue rather a gcc one. It might be already fixed
> in binutils too.
I encountered issues even with the latest version 2.42 of binutils, as shown
below.
~/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-as -v
GNU assembler version 2.42 (aarch64-unknown-linux-gnu) using BFD version
(crosstool-NG 1.26.0.72_810021d) 2.42
~/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-as
-mcpu=cortex-a78ae test.S
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
` (4 preceding siblings ...)
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
@ 2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
2024-05-14 9:37 ` rearnsha at gcc dot gnu.org
2024-05-15 15:53 ` yanxiaoyong5 at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-14 7:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #6 from xiaoyong yan <yanxiaoyong5 at gmail dot com> ---
~/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-as
-mcpu=cortex-a78ae test.S
test.S: Assembler messages:
test.S: Warning: end of file not at end of a line; newline inserted
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'
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
` (5 preceding siblings ...)
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
@ 2024-05-14 9:37 ` rearnsha at gcc dot gnu.org
2024-05-15 15:53 ` yanxiaoyong5 at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-05-14 9:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|WAITING |RESOLVED
--- Comment #7 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
This is a bug in GNU Binutils. These system registers are incorrectly
described as being part of armv8.3-a, rather than part of the Pauth extension.
Please can you raise a bug there: https://sourceware.org/bugzilla (select
product binutils).
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/115058] on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
` (6 preceding siblings ...)
2024-05-14 9:37 ` rearnsha at gcc dot gnu.org
@ 2024-05-15 15:53 ` yanxiaoyong5 at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: yanxiaoyong5 at gmail dot com @ 2024-05-15 15:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115058
--- Comment #8 from xiaoyong yan <yanxiaoyong5 at gmail dot com> ---
ok, thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-05-15 15:53 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 1:35 [Bug target/115058] New: on target arm -mcpu=cortex-a78ae does not allow use pauth and dot product yanxiaoyong5 at gmail dot com
2024-05-13 12:55 ` [Bug target/115058] " rearnsha at gcc dot gnu.org
2024-05-14 1:28 ` yanxiaoyong5 at gmail dot com
2024-05-14 1:30 ` pinskia at gcc dot gnu.org
2024-05-14 5:47 ` yanxiaoyong5 at gmail dot com
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
2024-05-14 7:11 ` yanxiaoyong5 at gmail dot com
2024-05-14 9:37 ` rearnsha at gcc dot gnu.org
2024-05-15 15:53 ` yanxiaoyong5 at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).