From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 3F6D57ED67 for ; Sat, 11 Aug 2012 10:53:17 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jeffsco@psellos.com) identity=pra; client-ip=174.121.218.178; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeffsco@psellos.com"; x-sender="jeffsco@psellos.com"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jeffsco@psellos.com) identity=mailfrom; client-ip=174.121.218.178; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeffsco@psellos.com"; x-sender="jeffsco@psellos.com"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@pse.psellos.com) identity=helo; client-ip=174.121.218.178; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeffsco@psellos.com"; x-sender="postmaster@pse.psellos.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAP8cJlCuedqy/2dsb2JhbABEuXmBB4IgAQEEATo/BQtRVwaGJIF2BrgniymFN2ADiE6SWYozgn+BPw X-IronPort-AV: E=Sophos;i="4.77,749,1336341600"; d="scan'208";a="152880544" Received: from pse.psellos.com ([174.121.218.178]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Aug 2012 10:53:03 +0200 Received: from [192.168.0.23] (71-212-116-164.tukw.qwest.net [71.212.116.164]) (authenticated bits=0) by pse.psellos.com (8.13.8/8.13.8) with ESMTP id q7B8qr4t015567 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 11 Aug 2012 03:52:58 -0500 References: <51E93001-B3AB-4B8D-B46C-7ACA11346C38@psellos.com> In-Reply-To: Mime-Version: 1.0 (Apple Message framework v1280) Content-Type: text/plain; charset=us-ascii Message-Id: <1CF2B468-6990-415C-91D3-66CF380CF4CA@psellos.com> Content-Transfer-Encoding: 7bit Cc: Jeffrey Scofield , Caml List From: Jeffrey Scofield Date: Sat, 11 Aug 2012 01:52:52 -0700 To: Benedikt Meurer X-Mailer: Apple Mail (2.1280) X-Validation-by: jeffsco@psellos.com Subject: [Caml-list] ARM code generator problem Benedikt, > If you look at destroyed_at_oper in asmcomp/arm/proc.ml, you'll see that > d7 (s14+s15) is marked as destroyed for those operations where it is > used as scratch register. I definitely see d7 being overwritten in the way I described, and I don't think I've changed these parts of the code. Most of the work was in reformatting the output for the iOS assembler. There are some smallish changes to the linkage for calling functions like sin() and cos(). I'll look to see how destroyed_at_oper is working, maybe it will explain things. I made a pretty small file (35 lines or so) that shows the problem. Unfortunately, I don't have access to a Linux/ARM machine, so I can't easily try it on an unmodified version of OCaml 4.00.0. If I still think there's a problem after figuring out destroyed_at_oper, I'll send you a description in private mail. > If possible, it would probably also make sense to merge some of the iOS > related code into the upstream ARM backend, in case you are interested. I'd definitely be interested, once I get things working reasonably well. Thanks for the help. Jeffrey