public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103775] New: [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'
@ 2021-12-20 16:15 zsojka at seznam dot cz
  2021-12-20 16:16 ` [Bug target/103775] " pinskia at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2021-12-20 16:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775

            Bug ID: 103775
           Summary: [12 Regression] Assembler messages: Warning:
                    unpredictable transfer with writeback -- `ldrb
                    w0,[x0,16]!'
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

Created attachment 52035
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52035&action=edit
reduced testcase

According to what I could find:

ARM DDI 0487G.b (ID072021)
K1.2.16
CONSTRAINED UNPREDICTABLE behavior for A64 instructions

the behavior of the generated instruction is not guaranteed to be what the
compiler might expected.

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -Og -fno-forward-propagate -free testcase.c -c
/tmp/ccOyWfMV.s: Assembler messages:
/tmp/ccOyWfMV.s:11: Warning: unpredictable transfer with writeback -- `ldrb
w0,[x0,16]!'

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-6072-20211220084313-g8d1e342b4af-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/12.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-6072-20211220084313-g8d1e342b4af-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.0 20211220 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-03-26 17:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 16:15 [Bug target/103775] New: [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!' zsojka at seznam dot cz
2021-12-20 16:16 ` [Bug target/103775] " pinskia at gcc dot gnu.org
2021-12-20 16:24 ` zsojka at seznam dot cz
2021-12-20 16:26 ` zsojka at seznam dot cz
2021-12-20 16:36 ` [Bug rtl-optimization/103775] " pinskia at gcc dot gnu.org
2022-01-07 11:50 ` acoplan at gcc dot gnu.org
2022-01-17 12:34 ` rguenth at gcc dot gnu.org
2022-03-23 12:27 ` rguenth at gcc dot gnu.org
2022-03-24 15:46 ` jakub at gcc dot gnu.org
2022-03-24 15:59 ` jakub at gcc dot gnu.org
2022-03-24 16:56 ` jakub at gcc dot gnu.org
2022-03-25  7:35 ` ebotcazou at gcc dot gnu.org
2022-03-26 15:23 ` cvs-commit at gcc dot gnu.org
2022-03-26 17:25 ` jakub at gcc dot gnu.org

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).