public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/114182] New: gcc.c-torture/compile/attr-complex-method-2.c fails for H8/300
@ 2024-03-01  0:34 jdx at o2 dot pl
  2024-03-01  0:58 ` [Bug testsuite/114182] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jdx at o2 dot pl @ 2024-03-01  0:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114182
           Summary: gcc.c-torture/compile/attr-complex-method-2.c fails
                    for H8/300
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdx at o2 dot pl
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: h8300-elf

Created attachment 57581
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57581&action=edit
Dump file for attr-complex-method-2.c

[...]
PASS: gcc.c-torture/compile/attr-complex-method-2.c   -O0  (test for excess
errors)
FAIL: gcc.c-torture/compile/attr-complex-method-2.c   -O0   scan-tree-dump
optimized "__(?:gnu_)?divdc3"
PASS: gcc.c-torture/compile/attr-complex-method-2.c   -O1  (test for excess
errors)
FAIL: gcc.c-torture/compile/attr-complex-method-2.c   -O1   scan-tree-dump
optimized "__(?:gnu_)?divdc3"
PASS: gcc.c-torture/compile/attr-complex-method-2.c   -O2  (test for excess
errors)
FAIL: gcc.c-torture/compile/attr-complex-method-2.c   -O2   scan-tree-dump
optimized "__(?:gnu_)?divdc3"
PASS: gcc.c-torture/compile/attr-complex-method-2.c   -O3 -g  (test for excess
errors)
FAIL: gcc.c-torture/compile/attr-complex-method-2.c   -O3 -g   scan-tree-dump
optimized "__(?:gnu_)?divdc3"
PASS: gcc.c-torture/compile/attr-complex-method-2.c   -Os  (test for excess
errors)
FAIL: gcc.c-torture/compile/attr-complex-method-2.c   -Os   scan-tree-dump
optimized "__(?:gnu_)?divdc3"
UNSUPPORTED: gcc.c-torture/compile/attr-complex-method-2.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none 
UNSUPPORTED: gcc.c-torture/compile/attr-complex-method-2.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects 
PASS: gcc.c-torture/compile/attr-complex-method.c   -O0  (test for excess
errors)
PASS: gcc.c-torture/compile/attr-complex-method.c   -O0   scan-tree-dump-not
optimized "__divdc3"
PASS: gcc.c-torture/compile/attr-complex-method.c   -O1  (test for excess
errors)
PASS: gcc.c-torture/compile/attr-complex-method.c   -O1   scan-tree-dump-not
optimized "__divdc3"
PASS: gcc.c-torture/compile/attr-complex-method.c   -O2  (test for excess
errors)
PASS: gcc.c-torture/compile/attr-complex-method.c   -O2   scan-tree-dump-not
optimized "__divdc3"
PASS: gcc.c-torture/compile/attr-complex-method.c   -O3 -g  (test for excess
errors)
PASS: gcc.c-torture/compile/attr-complex-method.c   -O3 -g   scan-tree-dump-not
optimized "__divdc3"
PASS: gcc.c-torture/compile/attr-complex-method.c   -Os  (test for excess
errors)
PASS: gcc.c-torture/compile/attr-complex-method.c   -Os   scan-tree-dump-not
optimized "__divdc3"
UNSUPPORTED: gcc.c-torture/compile/attr-complex-method.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none 
UNSUPPORTED: gcc.c-torture/compile/attr-complex-method.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
[...]

According to the attached dump file, I believe the end of
attr-complex-method-2.c should look like this:
/* { dg-final { scan-tree-dump "__(?:gnu_)?divdc3" "optimized" { target { ! {
avr-*-* h8300-*-* } } } } } */

/* { dg-final { scan-tree-dump "__(?:gnu_)?divsc3" "optimized" { target {
avr-*-* h8300-*-* } } } } */

Similarly, shouldn't attr-complex-method.c also search for __divsc3 for AVR,
H8/300 and possibly a few other architectures?

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

end of thread, other threads:[~2024-03-08 22:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01  0:34 [Bug testsuite/114182] New: gcc.c-torture/compile/attr-complex-method-2.c fails for H8/300 jdx at o2 dot pl
2024-03-01  0:58 ` [Bug testsuite/114182] " pinskia at gcc dot gnu.org
2024-03-03 17:42 ` jdx at o2 dot pl
2024-03-04  1:12 ` jdx at o2 dot pl
2024-03-04  1:16 ` pinskia at gcc dot gnu.org
2024-03-08 22:32 ` law 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).