public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/108809] New: gcc.target/powerpc/builtins-5-p9-runnable.c fails on power 9 BE
Date: Wed, 15 Feb 2023 21:57:44 +0000	[thread overview]
Message-ID: <bug-108809-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 108809
           Summary: gcc.target/powerpc/builtins-5-p9-runnable.c fails on
                    power 9 BE
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

make  -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'
powerpc.exp=gcc.target/powerpc/builtins-5-p9-runnable.c"
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c execution test
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c  -O0  execution test
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c  -Os  execution test
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c  -O1  execution test
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c  -O2  execution test
FAIL: gcc.target/powerpc/builtins-5-p9-runnable.c  -O3  execution test

This fails on power 9 BE (only) and fails for trunk as well as gcc 12, 11, and
10.  

(gdb) run
Starting program: /home/seurer/gcc/git/build/gcc-10/builtins-5-p9-runnable.exe 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc64-linux-gnu/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=<optimized out>,
no_tid=<optimized out>) at pthread_kill.c:44
44      pthread_kill.c: No such file or directory.
(gdb) where
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=<optimized
out>, no_tid=<optimized out>) at pthread_kill.c:44
#1  0x00007ffff7c90cb4 in __GI_raise (sig=<optimized out>) at
../sysdeps/posix/raise.c:26
#2  0x00007ffff7c749ec in __GI_abort () at abort.c:79
#3  0x00000000100005e8 in main () at
/home/seurer/gcc/git/gcc-10/gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c:71

If I run it with DEBUG defined I get

seurer@perfzep2:~/gcc/git/build/gcc-10$ ./builtins-5-p9-runnable.exe 
Error: result does not match expected result
vec_xl_len_r(8): vec_uc_expected1[0] to vec_uc_expected1[15]
 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0,
vec_xl_len_r(8): vec_uc_result1[0] to vec_uc_result1[15]
 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8,

Error: result does not match expected result
vec_xl_len_r(4): vec_uc_expected1[0] to vec_uc_expected1[15]
 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
vec_xl_len_r(4): vec_uc_result1[0] to vec_uc_result1[15]
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4,

Error: result does not match expected result
vec_xl_len_r(2): vec_uc_expected1[0] to vec_uc_expected1[15]
 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
vec_xl_len_r(2) vec_uc_result1[0] to vec_uc_result1[15]
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2,

Error: result does not match expected result
vec_xst_len_r(16) vec_uc_expected1[0] to vec_uc_expected1[15]
 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,
vec_xst_len_r(16) result[0] to result[15]
 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,

Error: result does not match expected result
vec_xst_len_r(2) vec_uc_expected1[0] to vec_uc_expected1[15]
 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
vec_xst_len_r(2) result[0] to result[15]
 15, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

Error: result does not match expected result
vec_xst_len_r(16) vec_uc_expected1[0] to vec_uc_expected1[15]
 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,
vec_xst_len_r(16) result[0] to result[15]
 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,

Error: result does not match expected result
vec_xst_len_r(14) vec_uc_expected1[0] to vec_uc_expected1[15]
 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0,
vec_xst_len_r(14) result[0] to result[15]
 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0, 0,

             reply	other threads:[~2023-02-15 21:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 21:57 seurer at gcc dot gnu.org [this message]
2023-03-09  7:35 ` [Bug target/108809] " linkw at gcc dot gnu.org
2023-04-13  9:43 ` guojiufu at gcc dot gnu.org
2023-04-13 12:43 ` guojiufu at gcc dot gnu.org
2023-04-17  2:39 ` [Bug testsuite/108809] " cvs-commit at gcc dot gnu.org
2023-05-09  7:37 ` guojiufu at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108809-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).