From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: dsmich@roadrunner.com Newsgroups: gmane.lisp.guile.bugs Subject: bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch Date: Fri, 19 Jun 2020 19:10:35 +0000 Message-ID: <3d5bd4ffc426b08c162d8c0c2e592360fe8e6ae9@webmail> References: <3583c04a12981cebf9a014b71c2d6f1a27b851af@webmail> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_2735b514c3cecd5f54219549736069a7" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="52689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "'40737@debbugs.gnu.org'" <40737@debbugs.gnu.org> To: "'Andrew Gierth'" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Jun 19 21:11:10 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmMPu-000Ddr-E7 for guile-bugs@m.gmane-mx.org; Fri, 19 Jun 2020 21:11:10 +0200 Original-Received: from localhost ([::1]:51786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmMPt-0007a2-E8 for guile-bugs@m.gmane-mx.org; Fri, 19 Jun 2020 15:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmMPm-0007XP-T2 for bug-guile@gnu.org; Fri, 19 Jun 2020 15:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmMPm-0000LM-Gc for bug-guile@gnu.org; Fri, 19 Jun 2020 15:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jmMPm-00005Y-Ao for bug-guile@gnu.org; Fri, 19 Jun 2020 15:11:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <3583c04a12981cebf9a014b71c2d6f1a27b851af@webmail> Resent-From: dsmich@roadrunner.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 19 Jun 2020 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40737 X-GNU-PR-Package: guile Original-Received: via spool by 40737-submit@debbugs.gnu.org id=B40737.1592593845308 (code B ref 40737); Fri, 19 Jun 2020 19:11:02 +0000 Original-Received: (at 40737) by debbugs.gnu.org; 19 Jun 2020 19:10:45 +0000 Original-Received: from localhost ([127.0.0.1]:56809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmMPV-00004s-IJ for submit@debbugs.gnu.org; Fri, 19 Jun 2020 15:10:45 -0400 Original-Received: from p-impout010aa.msg.pkvw.co.charter.net ([47.43.26.141]:60585 helo=p-impout001.msg.pkvw.co.charter.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmMPS-0008WJ-BX for 40737@debbugs.gnu.org; Fri, 19 Jun 2020 15:10:44 -0400 Original-Received: from localhost ([54.243.7.172]) by cmsmtp with ESMTP id mMPLjRNp6OQ8hmMPLjSLr1; Fri, 19 Jun 2020 19:10:36 +0000 X-Authority-Analysis: v=2.3 cv=SrXuF8G0 c=1 sm=1 tr=0 a=ZhHbwgLlxfPm5G22ibXkng==:117 a=ZhHbwgLlxfPm5G22ibXkng==:17 a=dSg6v7tjMxUA:10 a=6Omw106BHXQhsn2DJPEA:9 a=QEXdDO2ut3YA:10 a=iBhWLZKeAAAA:8 a=BUlG1OanY0Q6bFs5T2YA:9 a=xmjsTpsqWQbTo2Zz:21 a=_W_S_7VecoQA:10 a=A6JYFPPBVq9T8PoXqI0p:22 X-Mailer: Atmail X-Originating-IP: [65.185.85.154] X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-CMAE-Envelope: MS4wfF3YOXomyBbkaVk3vGPGTJtkYPma7S7LnTFpg9ReReD4wFS3hx038qD5IN04f5U+2tgD+j2aeaTgE1mUVbk+fjFmBIC/ics1KcZ0nlS+y81ohZpIfmkW DThhrJzAOj4xU+ewfneWbQtYikXPG/t1e2tF/wonB2cTzLVzKsG7cWxBnPwrLAFKb62hWE+DERSfolVtI8uCINOOEO822IO7GTM= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9810 Archived-At: --=_2735b514c3cecd5f54219549736069a7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here is the start of a case to go in tests/movi.c:=0A=0A#include "test.h= "=0A=0A// Should really test all of the cases seen in=0A// arm-cpu.c: en= code_thumb_immediate()=0A=0A/* 00000000 00000000 00000000 abcdefgh */=0A= /* 00000000 abcdefgh 00000000 abcdefgh */=0A/* abcdefgh 00000000 abcdefg= h 00000000 */=0A/* abcdefgh abcdefgh abcdefgh abcdefgh */=0A/* 1bcdefgh --=_2735b514c3cecd5f54219549736069a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here is the start of a case to go in tests/movi.c:

#i= nclude "test.h"

// Should really test all of the cases seen in// arm-cpu.c: encode_thumb_immediate()

/* 00000000 00000000 0000= 0000 abcdefgh */
/* 00000000 abcdefgh 00000000 abcdefgh */
/* abcd= efgh 00000000 abcdefgh 00000000 */
/* abcdefgh abcdefgh abcdefgh abcd= efgh */
/* 1bcdefgh << 24 ... 1bcdefgh << 1 */

sta= tic void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_s= ize)
{
  jit_begin(j, arena_base, arena_size);
 
=   jit_movi(j, JIT_R0, 0xa500a500);
  jit_retr(j, JIT_R0);
  jit_uword_t (*f)(void) =3D jit_end(j, NULL);

 = fprintf(stderr, "returns 0x%08x\n", f());
  ASSERT(f() =3D=3D 0= xa500a500);
}

int
main (int argc, char *argv[])
{
&nb= sp; return main_helper(argc, argv, run_test);
}

=0A
--=_2735b514c3cecd5f54219549736069a7--