public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95252] New: testcase gcc.dg/torture/pr67916.c failure when testing with -msave-restore
@ 2020-05-21  6:51 bina2374 at gmail dot com
  2020-05-25 21:59 ` [Bug target/95252] " wilson at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bina2374 at gmail dot com @ 2020-05-21  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95252
           Summary: testcase gcc.dg/torture/pr67916.c failure when testing
                    with -msave-restore
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bina2374 at gmail dot com
                CC: kito at gcc dot gnu.org, wilson at gcc dot gnu.org
  Target Milestone: ---
            Target: riscv64-unknown-elf

FAIL: gcc.dg/torture/pr67916.c   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  execution test

The ABI is lp64d, arch is rv64imafdc, and mcmodel is medany.

The full execution command line is:
<TOOLCHAIN-PATH>/bin/riscv64-unknown-elf-gcc
<GCC-SOURCE-PATH>/gcc/testsuite/gcc.dg/torture/pr67916.c
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -fdiagnostics-urls=never -msave-restore -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions
-lm -o ./pr67916.exe

Execute with qemu:
$ <QEMU-PATH>/bin/qemu-riscv64./pr67916.exe
Segmentation fault (core dumped)

By the way, I try to reduce the number of compilation options, and found the
smallest combination of options that will cause an execution error:
<TOOLCHAIN-PATH>/bin/riscv64-unknown-elf-gcc
<GCC-SOURCE-PATH>/gcc/testsuite/gcc.dg/torture/pr67916.c -msave-restore -O3
-funroll-loops -lm  -o ./pr67916.exe

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

end of thread, other threads:[~2020-06-12  3:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21  6:51 [Bug target/95252] New: testcase gcc.dg/torture/pr67916.c failure when testing with -msave-restore bina2374 at gmail dot com
2020-05-25 21:59 ` [Bug target/95252] " wilson at gcc dot gnu.org
2020-05-27  5:06 ` kito at gcc dot gnu.org
2020-05-27 23:18 ` wilson at gcc dot gnu.org
2020-05-27 23:19 ` wilson at gcc dot gnu.org
2020-05-27 23:20 ` wilson at gcc dot gnu.org
2020-05-28  3:39 ` kito at gcc dot gnu.org
2020-05-28 18:42 ` wilson at gcc dot gnu.org
2020-06-01 16:04 ` kito.cheng at gmail dot com
2020-06-03  3:32 ` kito at gcc dot gnu.org
2020-06-12  3:37 ` kito 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).