From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.213.71 with SMTP id nq7mr39449655obc.7.1432025057084; Tue, 19 May 2015 01:44:17 -0700 (PDT) X-Received: by 10.140.43.72 with SMTP id d66mr364531qga.25.1432025057044; Tue, 19 May 2015 01:44:17 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!news.ripco.com!news.glorb.com!j8no5468660igd.0!news-out.google.com!k20ni36522qgd.0!nntp.google.com!z60no2216255qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 19 May 2015 01:44:16 -0700 (PDT) In-Reply-To: <2cfd12ff-e3dc-44c2-a462-aefd3ff5b8c4@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.180.114; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 193.71.180.114 References: <2cfd12ff-e3dc-44c2-a462-aefd3ff5b8c4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <681ade3b-a203-40bb-a26e-5f77324f644c@googlegroups.com> Subject: Re: Gnat for ARM : are these bugs? From: Egil H H Injection-Date: Tue, 19 May 2015 08:44:17 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:25921 Date: 2015-05-19T01:44:16-07:00 List-Id: On Tuesday, May 19, 2015 at 9:54:32 AM UTC+2, jan.de...@gmail.com wrote: > > 1. its seems to be illegal to to assign 2 ** 0 ( = 1) to a mod type. Works fine for me (on x86, though). No expert on ARM-assembly but I read bge as greater or equal, so: cmp r3, #0 -- if N<0 then exception bge .L2 -- else .L2 > > 2. on a illegal assignment like 2 ** 32 to a 32 bit mod type the answer is a big fat zero with no questions asked. All operations on modular types are performed modulo the modulus, ** is no exception from that rule. If you want it to fail, try instead to assign a named number: bar : constant := 2**N; begin S := bar; -- ~egilhh